Fixed per scanline interrupts. No artifacts in MMCOI
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user