mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-24 14:49:53 -06:00
fix bug
This commit is contained in:
@ -509,6 +509,8 @@ void ProcessCommands()
|
|||||||
if (cmdheader.Length)
|
if (cmdheader.Length)
|
||||||
FIFORead<0>(cmddata, cmdheader.Length);
|
FIFORead<0>(cmddata, cmdheader.Length);
|
||||||
|
|
||||||
|
Buffer->unlock();
|
||||||
|
|
||||||
switch (cmdheader.Command)
|
switch (cmdheader.Command)
|
||||||
{
|
{
|
||||||
case Cmd_Pause:
|
case Cmd_Pause:
|
||||||
@ -538,6 +540,8 @@ void ProcessCommands()
|
|||||||
emuThread->emuRun();
|
emuThread->emuRun();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Buffer->lock();
|
||||||
}
|
}
|
||||||
|
|
||||||
Buffer->unlock();
|
Buffer->unlock();
|
||||||
|
@ -838,7 +838,8 @@ void ProcessInput()
|
|||||||
|
|
||||||
if (InputQueue.empty())
|
if (InputQueue.empty())
|
||||||
{
|
{
|
||||||
printf("Netplay: BAD! INPUT QUEUE EMPTY\n");
|
if (NDS::NumFrames < 4)
|
||||||
|
printf("Netplay: BAD! INPUT QUEUE EMPTY\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -863,7 +864,7 @@ void ProcessInput()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// apply this input frame
|
// apply this input frame
|
||||||
printf("[%08d] INPUT=%08X (%08d) (backlog=%d)\n", NDS::NumFrames, frame.KeyMask, frame.FrameNum, InputQueue.size());
|
if (frame.KeyMask != 0xFFF) printf("[%08d] INPUT=%08X (%08d) (backlog=%d)\n", NDS::NumFrames, frame.KeyMask, frame.FrameNum, InputQueue.size());
|
||||||
NDS::SetKeyMask(frame.KeyMask);
|
NDS::SetKeyMask(frame.KeyMask);
|
||||||
InputQueue.pop();
|
InputQueue.pop();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user