mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-28 16:50:15 -06:00
synchronize pause/unpause across all instances
This commit is contained in:
@ -241,11 +241,24 @@ void EmuInstance::deleteAllWindows()
|
||||
}
|
||||
|
||||
|
||||
void EmuInstance::updateConfigInfo(int kind)
|
||||
void EmuInstance::broadcastCommand(int cmd)
|
||||
{
|
||||
switch (kind)
|
||||
broadcastInstanceCommand(cmd, instanceID);
|
||||
}
|
||||
|
||||
void EmuInstance::handleCommand(int cmd)
|
||||
{
|
||||
switch (cmd)
|
||||
{
|
||||
case Config_RecentFiles:
|
||||
case InstCmd_Pause:
|
||||
emuThread->emuPause(false);
|
||||
break;
|
||||
|
||||
case InstCmd_Unpause:
|
||||
emuThread->emuUnpause(false);
|
||||
break;
|
||||
|
||||
case InstCmd_UpdateRecentFiles:
|
||||
for (int i = 0; i < kMaxWindows; i++)
|
||||
{
|
||||
if (windowList[i])
|
||||
|
Reference in New Issue
Block a user