mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-26 15:50:00 -06:00
attempt at syncing pause command between instances. works somewhat
This commit is contained in:
@ -87,6 +87,7 @@
|
||||
#include "SPU.h"
|
||||
#include "Wifi.h"
|
||||
#include "Platform.h"
|
||||
#include "IPC.h"
|
||||
#include "LocalMP.h"
|
||||
#include "Config.h"
|
||||
#include "DSi_I2C.h"
|
||||
@ -356,6 +357,8 @@ void EmuThread::run()
|
||||
|
||||
while (EmuRunning != emuStatus_Exit)
|
||||
{
|
||||
IPC::Process();
|
||||
|
||||
Input::Process();
|
||||
|
||||
if (Input::HotkeyPressed(HK_FastForwardToggle)) emit windowLimitFPSChange();
|
||||
@ -2703,6 +2706,9 @@ void MainWindow::onPause(bool checked)
|
||||
OSD::AddMessage(0, "Resumed");
|
||||
pausedManually = false;
|
||||
}
|
||||
|
||||
if (Platform::InstanceID()==0) // HAX
|
||||
IPC::SendCommand(0xFFFF, IPC::Cmd_Pause, 0, nullptr);
|
||||
}
|
||||
|
||||
void MainWindow::onReset()
|
||||
|
Reference in New Issue
Block a user