Fixed per scanline interrupts. No artifacts in MMCOI

This commit is contained in:
2026-05-15 23:38:40 +01:00
parent 4e745b4fbc
commit ec40e04ff3
8 changed files with 263 additions and 104 deletions

View File

@@ -73,5 +73,30 @@ namespace Core
}
}
}
public void SaveState(string filePath)
{
using (var fs = new System.IO.FileStream(filePath, System.IO.FileMode.Create))
using (var bw = new System.IO.BinaryWriter(fs))
{
Cpu.SaveState(bw);
MemoryBus.SaveState(bw);
VideoProcessor.SaveState(bw);
AudioProcessor.SaveState(bw);
}
}
public void LoadState(string filePath)
{
if (!System.IO.File.Exists(filePath)) return;
using (var fs = new System.IO.FileStream(filePath, System.IO.FileMode.Open))
using (var br = new System.IO.BinaryReader(fs))
{
Cpu.LoadState(br);
MemoryBus.LoadState(br);
VideoProcessor.LoadState(br);
AudioProcessor.LoadState(br);
}
}
}
}