Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Dec 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading