Check version in each DoState() func.

They bail on PointerWrap error or bad version.
This commit is contained in:
Unknown W. Brackets committed 2013-09-14 20:23:03 -07:00
1 parent d2f2f8d7ad
commit 50e9e45d65
66 files changed
+527 -167

No files matched your search

+4
View File
@@ -98,6 +98,10 @@ void Init()
void DoState(PointerWrap &p)
{
auto s = p.Section("Memory", 1);
if (!s)
return;
p.DoArray(m_pRAM, g_MemorySize);
p.DoMarker("RAM");
p.DoArray(m_pVRAM, VRAM_SIZE);