mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 17:23:40 +01:00
Switch to std::function for savestate callbacks.
This commit is contained in:
1 parent
71c9804ffd
commit
3f0b759746
4 files changed
+15
-14
No files matched your search
+3
-3
@@ -332,11 +332,11 @@ void EmuScreen::onVKeyDown(int virtualKeyCode) {
|
||||
}
|
||||
break;
|
||||
case VIRTKEY_SAVE_STATE:
|
||||
SaveState::SaveSlot(g_Config.iCurrentStateSlot, 0);
|
||||
SaveState::SaveSlot(g_Config.iCurrentStateSlot, nullptr);
|
||||
break;
|
||||
case VIRTKEY_LOAD_STATE:
|
||||
if (SaveState::HasSaveInSlot(g_Config.iCurrentStateSlot)) {
|
||||
SaveState::LoadSlot(g_Config.iCurrentStateSlot, 0);
|
||||
SaveState::LoadSlot(g_Config.iCurrentStateSlot, nullptr);
|
||||
}
|
||||
break;
|
||||
case VIRTKEY_NEXT_SLOT:
|
||||
@@ -800,7 +800,7 @@ void EmuScreen::autoLoad() {
|
||||
//check if save state has save, if so, load
|
||||
int lastSlot = SaveState::GetNewestSlot();
|
||||
if (g_Config.bEnableAutoLoad && lastSlot != -1) {
|
||||
SaveState::LoadSlot(lastSlot, 0, 0);
|
||||
SaveState::LoadSlot(lastSlot, nullptr, 0);
|
||||
g_Config.iCurrentStateSlot = lastSlot;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user