Skip to content

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

Closed
Helaas wants to merge 0 commit into
LoveRetro:mainfrom
Helaas:rewind-crash
Closed

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

Conversation

@Helaas
Copy link
Copy Markdown

@Helaas Helaas commented May 8, 2026

No description provided.

Comment thread workspace/all/minarch/minarch.c Outdated
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.

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.

Should be good now

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.

Does this have to be tested with a specific game or emulator core?

Copy link
Copy Markdown
Author

@Helaas Helaas May 16, 2026

Choose a reason for hiding this comment

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

I tested with a few general ones and then fbneo with the games mentioned in the reddit thread

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