pine: Fix Wswitch-bool warning.

This commit is contained in:
lightningterror 2022-04-18 13:45:12 +02:00
parent 8d4df7f74b
commit ea0791a3bf
1 changed files with 9 additions and 10 deletions

View File

@ -498,17 +498,16 @@ PINEServer::IPCBuffer PINEServer::ParseCommand(char* buf, char* ret_buffer, u32
if (!SafetyChecks(buf_cnt, 0, ret_cnt, 4, buf_size)) if (!SafetyChecks(buf_cnt, 0, ret_cnt, 4, buf_size))
goto error; goto error;
EmuStatus status; EmuStatus status;
switch (m_vm->HasActiveMachine()) if (m_vm->HasActiveMachine())
{ {
case true: if (GetCoreThread().IsClosing())
if (GetCoreThread().IsClosing()) status = Paused;
status = Paused; else
else status = Running;
status = Running; }
break; else
case false: {
status = Shutdown; status = Shutdown;
break;
} }
ToArray(ret_buffer, status, ret_cnt); ToArray(ret_buffer, status, ret_cnt);
ret_cnt += 4; ret_cnt += 4;