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

View file

@ -100,12 +100,15 @@ void __UpdateApctlHandlers(int oldState, int newState, int flag, int error) {
// This feels like a dubious proposition, mostly...
void __NetDoState(PointerWrap &p) {
auto s = p.Section("sceNet", 1);
if (!s)
return;
p.Do(netInited);
p.Do(netInetInited);
p.Do(netApctlInited);
p.Do(apctlHandlers);
p.Do(netMallocStat);
p.DoMarker("net");
}
// TODO: should that struct actually be initialized here?