Fix older savestates no longer loading.

This commit is contained in:
Unknown W. Brackets 2013-09-27 22:40:04 -07:00
parent 05fda6e8c7
commit ab189749eb

View File

@ -157,9 +157,13 @@ void PSPGamedataInstallDialog::DoState(PointerWrap &p) {
auto s = p.Section("PSPGamedataInstallDialog", 0, 2);
if (!s)
return;
// This was included in version 1 and higher.
PSPDialog::DoState(p);
p.Do(request);
// This was included in version 2 and higher.
if (s > 2) {
PSPDialog::DoState(p);
p.Do(request);
p.Do(paramAddr);
p.Do(inFileNames);
p.Do(numFiles);