-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Force NetPlay Clients to Host Hardcore Status #13153
base: master
Are you sure you want to change the base?
Force NetPlay Clients to Host Hardcore Status #13153
Conversation
Please make sure that this builds correctly when (Note that the netplay packet layout must be the same regardless of whether |
df1e72f
to
1671c07
Compare
What happens if the joining players aren't logged into RetroAchievements? |
Host logged in with hardcore on, join not logged in - all players see hardcore mode on |
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.
The commit message should mention why this change is needed (which as I understand it is because otherwise different clients would get different code filtering).
bd9792e
to
096ba39
Compare
Now that you're using a config changed callback to call Also, please keep in mind that config changed callbacks can run from any thread. |
096ba39
to
a003223
Compare
I removed it from the only other place I could find it and verified it still worked. As for thread safety, rc_client_set_hardcore_enabled has an internal mutex. |
a003223
to
7e9ac9f
Compare
7e9ac9f
to
872bb61
Compare
Hold on, I forgot one thing. You haven't updated the commit message to explain why the change is desired. |
If the host is in hardcore mode, all joining players will be set to hardcore mode; if not, all joining players will be set to softcore. This ensures all players have the same settings and remain synchroized.
872bb61
to
9b6555c
Compare
If the host is in hardcore mode, all joining players will be set to hardcore mode; if not, all joining players will be set to softcore.