Qt: Re-enable sync for multiplayer windows that aren't connected (fixes #2974)

This commit is contained in:
Vicki Pfau 2023-08-04 23:19:29 -07:00
parent 189fce016f
commit b0977cef94
2 changed files with 5 additions and 0 deletions

View File

@ -26,6 +26,7 @@ Other fixes:
- Debugger: Fix writing to specific segment in command-line debugger
- mGUI: Fix cases where an older save state screenshot would be shown. (fixes mgba.io/i/2183)
- Qt: Fix savestate preview sizes with different scales (fixes mgba.io/i/2560)
- Qt: Re-enable sync for multiplayer windows that aren't connected (fixes mgba.io/i/2974)
Misc:
- Core: Handle relative paths for saves, screenshots, etc consistently (fixes mgba.io/i/2826)
- GB: Prevent incompatible BIOSes from being used on differing models

View File

@ -92,6 +92,10 @@ MultiplayerController::MultiplayerController() {
if (!id) {
for (int i = 1; i < controller->m_players.count(); ++i) {
player = controller->player(i);
if (player->node.gba->d.p->mode > SIO_MULTI) {
player->controller->setSync(true);
continue;
}
player->controller->setSync(false);
player->cyclesPosted += cycles;
if (player->awake < 1) {