[melonDS] reset caches after load state

This commit is contained in:
CasualPokePlayer 2022-03-06 01:21:55 -08:00
parent 8b6f1c96d6
commit 6e4a5a96af
2 changed files with 4 additions and 0 deletions

View File

@ -142,5 +142,8 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.NDS
[BizImport(CC)]
public abstract void GetNANDData(byte[] buf);
[BizImport(CC)]
public abstract void ResetCaches();
}
}

View File

@ -359,6 +359,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.NDS
protected override void LoadStateBinaryInternal(BinaryReader reader)
{
_core.ResetCaches();
SetMemoryCallbacks();
if (_frameThreadPtr != _core.GetFrameThreadProc())
{