-
Notifications
You must be signed in to change notification settings - Fork 44
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
base: master
Are you sure you want to change the base?
Conversation
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.) |
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. |
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? |
I'll try it later, and I think there's another variant of the do_load crash that I can easily fix. |
Ok, those two things are done. |
I think this is roughly ready to merge, but I'm probably going to do it manually and squash up some of the commits. |
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.