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

Mac replay system don't use UserDefaults for replays #576

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

NQNStudios
Copy link
Collaborator

@NQNStudios NQNStudios commented Feb 6, 2025

Fix #456

This is a more proper fix for the problem than #569 was.

Mac builds now include all of the text and map-based preference parsing code that windows/linux do. When the game is run as a replay, this code gets used and NSUserDefaults never come into play at all.

I've used some devilish compiler macros to make the code relatively DRY for the universal preferences code to redirect to mac-specific implementations if it's not a replay.

@CelticMinstrel
Copy link
Member

CelticMinstrel commented Feb 6, 2025

Are you able to update the Xcode 4 project too or does that require actually using an older computer? (I can do it on my old computer if there's issues.)

@NQNStudios
Copy link
Collaborator Author

I can't remember if I've tried doing that before. Just stepped away from the computer though so I can't try till later.

@CelticMinstrel
Copy link
Member

The Xcode 4 project doesn't build currently (in Xcode 4 at least) so it's not a priority, but if it's easy then you might as well do it?

@NQNStudios
Copy link
Collaborator Author

I'll try it later, and I think there's another variant of the do_load crash that I can easily fix.

@NQNStudios
Copy link
Collaborator Author

Ok, those two things are done.

@CelticMinstrel
Copy link
Member

I think this is roughly ready to merge, but I'm probably going to do it manually and squash up some of the commits.

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