Check version in each DoState() func.

They bail on PointerWrap error or bad version.
This commit is contained in:
Unknown W. Brackets
2013-09-14 20:23:03 -07:00
parent d2f2f8d7ad
commit 50e9e45d65
66 changed files with 527 additions and 167 deletions
+4 -1
View File
@@ -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");
}