mirror of
https://github.com/libretro/RetroArch
synced 2024-12-26 03:22:56 +00:00
don't flag rewind as initialized until after we're able to validate against core info (#15983)
This commit is contained in:
parent
5a0317b440
commit
be8e294c56
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user