So i'm working on a dolphin side project and i want to have a check box appear in the NetPlay Window before starting a game. I want it so that when this check box is checked or unchecked, it becomes checked/unchecked for all players in the lobby. I made some progress so far, but it is admittedly pretty messy (it doesn't help that i barely know any C++ to begin with).
The box would need to be synced between all players in the lobby, be unable to be changed when a game is in progress, send a message to the chat when the box is checked/unchecked, the box is always unchecked when starting a lobby, and only the host can check the box.
Here are two of my commits for the work i've managed to complete so far as a reference
https://github.com/CNace13/dolphin/commi...7be596c180
https://github.com/CNace13/dolphin/commi...75f562ece7
Right now, the box is not being synced between the players in the lobby. Additionally, if someone leaves a lobby when the box is checked then rejoins when the box is unchecked, dolphin will crash. Any info to guide me on how to fix this and complete the box would be very appreciated.
The box would need to be synced between all players in the lobby, be unable to be changed when a game is in progress, send a message to the chat when the box is checked/unchecked, the box is always unchecked when starting a lobby, and only the host can check the box.
Here are two of my commits for the work i've managed to complete so far as a reference
https://github.com/CNace13/dolphin/commi...7be596c180
https://github.com/CNace13/dolphin/commi...75f562ece7
Right now, the box is not being synced between the players in the lobby. Additionally, if someone leaves a lobby when the box is checked then rejoins when the box is unchecked, dolphin will crash. Any info to guide me on how to fix this and complete the box would be very appreciated.