mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-24 14:49:53 -06:00
make cross-instance pause work without being a shitshow
This commit is contained in:
@ -472,6 +472,8 @@ template<int fifo> void FIFOWrite(void* buf, int len)
|
|||||||
|
|
||||||
void ProcessCommands()
|
void ProcessCommands()
|
||||||
{
|
{
|
||||||
|
memset(CmdRecvFlags, 0, sizeof(CmdRecvFlags));
|
||||||
|
|
||||||
Buffer->lock();
|
Buffer->lock();
|
||||||
u8* data = (u8*)Buffer->data();
|
u8* data = (u8*)Buffer->data();
|
||||||
BufferHeader* header = (BufferHeader*)&data[0];
|
BufferHeader* header = (BufferHeader*)&data[0];
|
||||||
@ -504,6 +506,9 @@ void ProcessCommands()
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cmdheader.Command >= Cmd_MAX)
|
||||||
|
continue;
|
||||||
|
|
||||||
// handle this command
|
// handle this command
|
||||||
|
|
||||||
if (cmdheader.Length)
|
if (cmdheader.Length)
|
||||||
|
Reference in New Issue
Block a user