Inspired by the invariant mass distributions for the decays D0→KS0I¨0I^⋅ and D0→KS0I¨0I¨0 reported by the BESIII Collaboration, we investigate these processes with an unified final state interaction formalism by incorporating both the S-wave pseudoscalar meson-pseudoscalar meson interactions within a chiral unitary approach and the P-wave contribution from the intermediate resonance Kˉ∗(892). By performing a combined fit to the invariant mass spectra and taking into account the coherence between the S- and P-waves, our results are in agreement with the experimental data. For the decay D0→KS0I¨0I^⋅, the structure near 1.0 GeV in the I¨0I^⋅ invariant mass distribution corresponds to the signal of the a0(980), which is dynamically generated from the S-wave interactions. In the case of D0→KS0I¨0I¨0, the near-threshold enhancement in the I¨0I¨0 mass distribution arises from the combined contributions of the f0(500) and the intermediate Kˉ∗(892), while the cusp-like structure around 1 GeV2 is associated with the f0(980).