mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-26 19:58:36 +01:00
Check version in each DoState() func.
They bail on PointerWrap error or bad version.
This commit is contained in:
1 parent
d2f2f8d7ad
commit
50e9e45d65
66 files changed
+527
-167
No files matched your search
@@ -221,6 +221,10 @@ public:
|
||||
|
||||
virtual void DoState(PointerWrap &p)
|
||||
{
|
||||
auto s = p.Section("Module", 1);
|
||||
if (!s)
|
||||
return;
|
||||
|
||||
p.Do(nm);
|
||||
p.Do(memoryBlockAddr);
|
||||
p.Do(memoryBlockSize);
|
||||
@@ -237,7 +241,6 @@ public:
|
||||
VarSymbolImport vsi = {0};
|
||||
p.Do(importedVars, vsi);
|
||||
RebuildImpExpModuleNames();
|
||||
p.DoMarker("Module");
|
||||
}
|
||||
|
||||
// We don't do this in the destructor to avoid annoying messages on game shutdown.
|
||||
@@ -328,9 +331,12 @@ public:
|
||||
u32 retValAddr;
|
||||
virtual void run(MipsCall &call);
|
||||
virtual void DoState(PointerWrap &p) {
|
||||
auto s = p.Section("AfterModuleEntryCall", 1);
|
||||
if (!s)
|
||||
return;
|
||||
|
||||
p.Do(moduleID_);
|
||||
p.Do(retValAddr);
|
||||
p.DoMarker("AfterModuleEntryCall");
|
||||
}
|
||||
static Action *Create() {
|
||||
return new AfterModuleEntryCall;
|
||||
@@ -386,9 +392,12 @@ void __KernelModuleInit()
|
||||
|
||||
void __KernelModuleDoState(PointerWrap &p)
|
||||
{
|
||||
auto s = p.Section("sceKernelModule", 1);
|
||||
if (!s)
|
||||
return;
|
||||
|
||||
p.Do(actionAfterModule);
|
||||
__KernelRestoreActionType(actionAfterModule, AfterModuleEntryCall::Create);
|
||||
p.DoMarker("sceKernelModule");
|
||||
}
|
||||
|
||||
void __KernelModuleShutdown()
|
||||
|
||||
Reference in new issue
Block a user