make cross-instance pause work without being a shitshow

This commit is contained in:
Arisotura 2023-03-11 13:46:29 +01:00
parent 86400e30dd
commit e4e397c477
1 changed files with 5 additions and 0 deletions

View File

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