Linux: IsRunning was crashing pcsx2. Also, jNO_DEFAULT isn't a good idea in these two spots.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1845 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
arcum42 2009-09-17 23:24:44 +00:00
parent 556a811933
commit 34af7c1281
2 changed files with 8 additions and 5 deletions

View File

@ -165,6 +165,8 @@ namespace Threading
bool PersistentThread::IsRunning() const bool PersistentThread::IsRunning() const
{ {
if (!m_running) return false;
if( !!m_detached ) if( !!m_detached )
return !!m_running; return !!m_running;
else else

View File

@ -47,7 +47,8 @@ const wxChar* Panels::SpeedHacksPanel::GetEEcycleSliderMsg( int val )
L"audio on many FMVs." L"audio on many FMVs."
); );
jNO_DEFAULT default:
break;
} }
return L"Unreachable Warning Suppressor!!"; return L"Unreachable Warning Suppressor!!";
@ -78,8 +79,8 @@ const wxChar* Panels::SpeedHacksPanel::GetVUcycleSliderMsg( int val )
L"3 - Maximum VU Cycle Stealing. Usefulness is limited, as this will cause flickering " L"3 - Maximum VU Cycle Stealing. Usefulness is limited, as this will cause flickering "
L"visuals or slowdown in most games." L"visuals or slowdown in most games."
); );
default:
jNO_DEFAULT break;
} }
return L"Unreachable Warning Suppressor!!"; return L"Unreachable Warning Suppressor!!";