Skip to content

fix: defer Rewind_init until after core initialization to prevent crashes#716

Open
Helaas wants to merge 1 commit into
LoveRetro:mainfrom
Helaas:rewind-crash
Open

fix: defer Rewind_init until after core initialization to prevent crashes#716
Helaas wants to merge 1 commit into
LoveRetro:mainfrom
Helaas:rewind-crash

Conversation

@Helaas
Copy link
Copy Markdown

@Helaas Helaas commented May 8, 2026

No description provided.

Config_readOptions();
applyShaderSettings();
Rewind_init(core.serialize_size ? core.serialize_size() : 0);
rewind_init_ready = 1;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this take the return value of Rewind_init into account?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, because then you wouldn't be able to activate it from the menu if minarch was launched with rewind disabled.

However, Rewind_on_state_change() probably should be. I'll take a look later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants