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

On Mac, restore original preferences after replay. #569

Closed
wants to merge 1 commit into from

Conversation

NQNStudios
Copy link
Collaborator

@NQNStudios NQNStudios commented Feb 4, 2025

Fix #456

(I tested this and it works.)

@CelticMinstrel
Copy link
Member

Does it work when the replay had an error and stopped early? Does it work if the replay ran to completion without quitting the game? (Though the latter seems like it might not be possible, unless you manually craft a replay file.)

@NQNStudios
Copy link
Collaborator Author

In the latter case (which is definitely possible, if you use Ctrl+C on the command line), it does restore the preferences but only after you close the window manually.

@NQNStudios
Copy link
Collaborator Author

In order to make this bullet-proof I think the way to go would be to make the windows/linux implementation of the preferences available to the Mac build when running in replay mode. Because otherwise, the Mac code isn't equipped to store the multi-type preference things in a std::map.

@NQNStudios
Copy link
Collaborator Author

I think I'll do it the other way.

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.

On Mac, preferences from replays seem to be applied persistently
2 participants