don't flag rewind as initialized until after we're able to validate against core info (#15983)

This commit is contained in:
Jamiras 2023-12-07 12:36:52 -07:00 committed by GitHub
parent 5a0317b440
commit be8e294c56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
@ -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));