GB: memory domains now work correctly immediately after a loadstate

This commit is contained in:
goyuken 2012-09-29 13:03:14 +00:00
parent 3898733e8e
commit a9304bef26
1 changed files with 3 additions and 0 deletions

View File

@ -310,6 +310,9 @@ namespace BizHawk.Emulation.Consoles.GB
{
if (!LibGambatte.gambatte_loadstate(GambatteState, data, (uint)data.Length))
throw new Exception("Gambatte failed to load the savestate!");
// since a savestate has been loaded, all memory domain data is now dirty
foreach (var r in MemoryRefreshers)
r.RefreshRead();
}
public void SaveStateText(System.IO.TextWriter writer)