Load the model from the savestate before deciding the memory size.

This commit is contained in:
The Dax committed 2013-11-28 15:36:24 -05:00
1 parent ba31e18060
commit 998a6f6fdb
1 file changed
+2 -1
+2 -1
View File
@@ -110,9 +110,10 @@ void DoState(PointerWrap &p)
g_PSPModel = PSP_MODEL_FAT;
}
else {
g_MemorySize = g_PSPModel == PSP_MODEL_FAT ? RAM_NORMAL_SIZE : RAM_DOUBLE_SIZE;
p.Do(g_PSPModel);
p.DoMarker("PSPModel");
g_MemorySize = g_PSPModel == PSP_MODEL_FAT ? RAM_NORMAL_SIZE : RAM_DOUBLE_SIZE;
}
p.DoArray(m_pRAM, g_MemorySize);