Skip to content

Commit

Permalink
pine: Fix Wswitch-bool warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
lightningterror committed Apr 18, 2022
1 parent 8d4df7f commit ea0791a
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions pcsx2/PINE.cpp
Expand Up @@ -498,17 +498,16 @@ PINEServer::IPCBuffer PINEServer::ParseCommand(char* buf, char* ret_buffer, u32
if (!SafetyChecks(buf_cnt, 0, ret_cnt, 4, buf_size))
goto error;
EmuStatus status;
switch (m_vm->HasActiveMachine())
if (m_vm->HasActiveMachine())
{
case true:
if (GetCoreThread().IsClosing())
status = Paused;
else
status = Running;
break;
case false:
status = Shutdown;
break;
if (GetCoreThread().IsClosing())
status = Paused;
else
status = Running;
}
else
{
status = Shutdown;
}
ToArray(ret_buffer, status, ret_cnt);
ret_cnt += 4;
Expand Down

0 comments on commit ea0791a

Please sign in to comment.