attempt at syncing pause command between instances. works somewhat

This commit is contained in:
Arisotura
2023-02-15 18:24:24 +01:00
parent 5aa378d316
commit ea951d092e
5 changed files with 124 additions and 2 deletions

View File

@ -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()