make cross-instance pause work without being a shitshow
This commit is contained in:
parent
86400e30dd
commit
e4e397c477
|
@ -472,6 +472,8 @@ template<int fifo> void FIFOWrite(void* buf, int len)
|
|||
|
||||
void ProcessCommands()
|
||||
{
|
||||
memset(CmdRecvFlags, 0, sizeof(CmdRecvFlags));
|
||||
|
||||
Buffer->lock();
|
||||
u8* data = (u8*)Buffer->data();
|
||||
BufferHeader* header = (BufferHeader*)&data[0];
|
||||
|
@ -504,6 +506,9 @@ void ProcessCommands()
|
|||
continue;
|
||||
}
|
||||
|
||||
if (cmdheader.Command >= Cmd_MAX)
|
||||
continue;
|
||||
|
||||
// handle this command
|
||||
|
||||
if (cmdheader.Length)
|
||||
|
|
Loading…
Reference in New Issue