Fix savedata.

This commit is contained in:
shenweip 2013-09-29 17:30:17 +08:00
parent 3e5b6e6200
commit 1cb59eb76a

View file

@ -325,7 +325,7 @@ void __CtrlDoState(PointerWrap &p)
{
std::lock_guard<std::recursive_mutex> guard(ctrlMutex);
auto s = p.Section("sceCtrl", 1);
auto s = p.Section("sceCtrl", 1, 2);
if (!s)
return;
@ -338,7 +338,11 @@ void __CtrlDoState(PointerWrap &p)
p.Do(ctrlBuf);
p.Do(ctrlBufRead);
p.Do(latch);
p.Do(dialogBtnMake);
if (s == 1) {
dialogBtnMake = 0;
} else {
p.Do(dialogBtnMake);
}
p.Do(ctrlIdleReset);
p.Do(ctrlIdleBack);