mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 21:39:52 +00:00
Fix (?) the savestate bug in PSPSaveDialog/SaveDataParam
PSPSaveDialog::DoState called SetPspParam in non-READ modes, which could modify it.
This commit is contained in:
parent
f5a7661c51
commit
f954013d0b
@ -1255,7 +1255,7 @@ void PSPSaveDialog::DoState(PointerWrap &p) {
|
||||
// Just reset it.
|
||||
bool hasParam = param.GetPspParam() != NULL;
|
||||
Do(p, hasParam);
|
||||
if (hasParam) {
|
||||
if (hasParam && p.mode == p.MODE_READ) {
|
||||
param.SetPspParam(&request);
|
||||
}
|
||||
Do(p, requestAddr);
|
||||
|
Loading…
Reference in New Issue
Block a user