mirror of https://github.com/PCSX2/pcsx2.git
pine: Fix Wswitch-bool warning.
This commit is contained in:
parent
8d4df7f74b
commit
ea0791a3bf
|
@ -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;
|
}
|
||||||
case false:
|
else
|
||||||
|
{
|
||||||
status = Shutdown;
|
status = Shutdown;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
ToArray(ret_buffer, status, ret_cnt);
|
ToArray(ret_buffer, status, ret_cnt);
|
||||||
ret_cnt += 4;
|
ret_cnt += 4;
|
||||||
|
|
Loading…
Reference in New Issue