-
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 prefs #380
Mac prefs #380
Conversation
if(line[0] == '#') continue; | ||
int eq = line.find_first_of('='); | ||
if(eq == std::string::npos) { | ||
printf("Error reading preferences: line is not a comment and lacks an = sign:\n\t%s\n", line.c_str()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there some reason why we can't use streaming like the rest of the code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I started by copying over the implementation of load_prefs() for windows/linux:
Line 105 in 10ad8dc
static bool load_prefs(std::istream& in) { |
I wouldn't want to change too much from something we're pretty sure works fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I guess we can leave it as is for now; I'd probably want the Linux version to also use streaming there but keeping them as much the same as possible isn't a bad goal.
I think I'd prefer to use the same naming and style conventions across the code. Things will probably never be completely consistent because it's an old and fairly large codebase, but we can at least try to make all the new code be consistent. |
Okay, so there's no other reason not to merge this, right? I'll probably merge it tonight then. |
I think it's ready. |
Part 2 of the replay system work/with a focus on getting MacOS replay functionality caught up.
control_focus
as a logged event.