mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
Merge pull request #13866 from unknownbrackets/rewind
SaveState: Allow rewind on mobile
This commit is contained in:
commit
f0784de9e3
@ -681,9 +681,9 @@ const KeyMap_IntStrPair psp_button_names[] = {
|
||||
{VIRTKEY_PAUSE, "Pause"},
|
||||
#ifndef MOBILE_DEVICE
|
||||
{VIRTKEY_FRAME_ADVANCE, "Frame Advance"},
|
||||
{VIRTKEY_REWIND, "Rewind"},
|
||||
{VIRTKEY_RECORD, "Audio/Video Recording" },
|
||||
#endif
|
||||
{VIRTKEY_REWIND, "Rewind"},
|
||||
{VIRTKEY_SAVE_STATE, "Save State"},
|
||||
{VIRTKEY_LOAD_STATE, "Load State"},
|
||||
{VIRTKEY_NEXT_SLOT, "Next Slot"},
|
||||
|
@ -676,7 +676,6 @@ namespace SaveState
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifndef MOBILE_DEVICE
|
||||
static inline void CheckRewindState()
|
||||
{
|
||||
if (gpuStats.numFlips % g_Config.iRewindFlipFrequency != 0)
|
||||
@ -689,10 +688,9 @@ namespace SaveState
|
||||
return;
|
||||
|
||||
rewindLastTime = now;
|
||||
DEBUG_LOG(BOOT, "saving rewind state");
|
||||
DEBUG_LOG(BOOT, "Saving rewind state");
|
||||
rewindStates.Save();
|
||||
}
|
||||
#endif
|
||||
|
||||
bool HasLoadedState() {
|
||||
return hasLoadedState;
|
||||
@ -719,10 +717,8 @@ namespace SaveState
|
||||
|
||||
void Process()
|
||||
{
|
||||
#ifndef MOBILE_DEVICE
|
||||
if (g_Config.iRewindFlipFrequency != 0 && gpuStats.numFlips != 0)
|
||||
CheckRewindState();
|
||||
#endif
|
||||
|
||||
if (!needsProcess)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user