Fix savedata to support old savedata.

This commit is contained in:
shenweip committed 2013-09-27 23:57:08 +08:00
1 parent dbb16517d2
commit 3da79bdeae
1 file changed
+14 -11
+14 -11
View File
@@ -154,17 +154,20 @@ void PSPGamedataInstallDialog::updateProgress() {
}
void PSPGamedataInstallDialog::DoState(PointerWrap &p) {
auto s = p.Section("PSPGamedataInstallDialog", 0, 1);
auto s = p.Section("PSPGamedataInstallDialog", 0, 2);
if (!s)
return;
PSPDialog::DoState(p);
p.Do(request);
p.Do(paramAddr);
p.Do(inFileNames);
p.Do(numFiles);
p.Do(readFiles);
p.Do(allFilesSize);
p.Do(allReadSize);
p.Do(progressValue);
if (s > 2) {
PSPDialog::DoState(p);
p.Do(request);
p.Do(paramAddr);
p.Do(inFileNames);
p.Do(numFiles);
p.Do(readFiles);
p.Do(allFilesSize);
p.Do(allReadSize);
p.Do(progressValue);
} else {
paramAddr = 0;
}
}