Skip to content

Commit

Permalink
Add save status
Browse files Browse the repository at this point in the history
  • Loading branch information
sum2012 committed Jan 28, 2017
1 parent c83db04 commit 2c58d34
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Core/HLE/sceUmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void __UmdInit()

void __UmdDoState(PointerWrap &p)
{
auto s = p.Section("sceUmd", 1, 2);
auto s = p.Section("sceUmd", 1, 3);
if (!s)
return;

Expand All @@ -100,8 +100,18 @@ void __UmdDoState(PointerWrap &p)
p.Do(umdWaitingThreads);
p.Do(umdPausedWaits);

if (s > 1)
if (s > 1) {
p.Do(UMDReplacePermit);
if (UMDReplacePermit)
MainWindow::ChangeMenu();
}
if (s > 2) {
p.Do(umdInsertChangeEvent);
CoreTiming::RestoreRegisterEvent(umdInsertChangeEvent, "UmdInsertChange", __UmdInsertChange);
p.Do(UMDInserted);
}
else
UMDInserted = true;
}

static u8 __KernelUmdGetState()
Expand Down

0 comments on commit 2c58d34

Please sign in to comment.