mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-25 00:04:49 +02:00
Check version in each DoState() func.
They bail on PointerWrap error or bad version.
This commit is contained in:
@@ -654,6 +654,10 @@ std::string ISOFileSystem::EntryFullPath(TreeEntry *e)
|
||||
|
||||
void ISOFileSystem::DoState(PointerWrap &p)
|
||||
{
|
||||
auto s = p.Section("ISOFileSystem", 1);
|
||||
if (!s)
|
||||
return;
|
||||
|
||||
int n = (int) entries.size();
|
||||
p.Do(n);
|
||||
|
||||
@@ -706,5 +710,4 @@ void ISOFileSystem::DoState(PointerWrap &p)
|
||||
}
|
||||
}
|
||||
}
|
||||
p.DoMarker("ISOFileSystem");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user