Skip to content

Commit

Permalink
don't flag rewind as initialized until after we're able to validate a…
Browse files Browse the repository at this point in the history
…gainst core info
  • Loading branch information
Jamiras committed Dec 7, 2023
1 parent 17c9227 commit 4458c19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion state_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,6 @@ void state_manager_event_init(
| STATE_MGR_REWIND_ST_FLAG_HOTKEY_WAS_CHECKED
| STATE_MGR_REWIND_ST_FLAG_HOTKEY_WAS_PRESSED
);
rewind_st->flags |= STATE_MGR_REWIND_ST_FLAG_INIT_ATTEMPTED;

/* We cannot initialise the rewind buffer
* unless the core info struct for the current
Expand All @@ -607,6 +606,8 @@ void state_manager_event_init(
if (!core_info_get_current_core(&core_info) || !core_info)
return;

rewind_st->flags |= STATE_MGR_REWIND_ST_FLAG_INIT_ATTEMPTED;

if (!core_info_current_supports_rewind())
{
RARCH_ERR("%s\n", msg_hash_to_str(MSG_REWIND_UNSUPPORTED));
Expand Down

0 comments on commit 4458c19

Please sign in to comment.