mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00: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
@@ -146,6 +146,10 @@ void VirtualDiscFileSystem::LoadFileListIndex() {
|
||||
|
||||
void VirtualDiscFileSystem::DoState(PointerWrap &p)
|
||||
{
|
||||
auto s = p.Section("VirtualDiscFileSystem", 1);
|
||||
if (!s)
|
||||
return;
|
||||
|
||||
int fileListSize = (int)fileList.size();
|
||||
int entryCount = (int)entries.size();
|
||||
|
||||
@@ -214,8 +218,6 @@ void VirtualDiscFileSystem::DoState(PointerWrap &p)
|
||||
}
|
||||
|
||||
// We don't savestate handlers (loaded on fs load), but if they change, it may not load properly.
|
||||
|
||||
p.DoMarker("VirtualDiscFileSystem");
|
||||
}
|
||||
|
||||
std::string VirtualDiscFileSystem::GetLocalPath(std::string localpath) {
|
||||
|
||||
Reference in new issue
Block a user