Skip to content

Commit be8e294

Browse files
authored
don't flag rewind as initialized until after we're able to validate against core info (libretro#15983)
1 parent 5a0317b commit be8e294

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

state_manager.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,6 @@ void state_manager_event_init(
597597
| STATE_MGR_REWIND_ST_FLAG_HOTKEY_WAS_CHECKED
598598
| STATE_MGR_REWIND_ST_FLAG_HOTKEY_WAS_PRESSED
599599
);
600-
rewind_st->flags |= STATE_MGR_REWIND_ST_FLAG_INIT_ATTEMPTED;
601600

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

609+
rewind_st->flags |= STATE_MGR_REWIND_ST_FLAG_INIT_ATTEMPTED;
610+
610611
if (!core_info_current_supports_rewind())
611612
{
612613
RARCH_ERR("%s\n", msg_hash_to_str(MSG_REWIND_UNSUPPORTED));

0 commit comments

Comments
 (0)