CommonHostInterface: Add onscreen indicator for rewind

This commit is contained in:
Connor McLaughlin
2021-08-07 12:07:04 +10:00
parent 8bea6e1530
commit 50a09384e1
4 changed files with 20 additions and 6 deletions

View File

@ -2368,6 +2368,11 @@ bool LoadRewindState(u32 skip_saves /*= 0*/, bool consume_state /*=true */)
return true;
}
bool IsRewinding()
{
return (s_rewind_load_frequency >= 0);
}
void SetRewinding(bool enabled)
{
if (enabled)

View File

@ -237,6 +237,7 @@ void CalculateRewindMemoryUsage(u32 num_saves, u64* ram_usage, u64* vram_usage);
void ClearMemorySaveStates();
void UpdateMemorySaveStateSettings();
bool LoadRewindState(u32 skip_saves = 0, bool consume_state = true);
bool IsRewinding();
void SetRewinding(bool enabled);
void SetRunaheadReplayFlag();