Misc. style fixes

This commit is contained in:
Tillmann Karras 2015-10-10 17:44:42 +02:00
parent e955a3a191
commit 0f1b287402
5 changed files with 8 additions and 10 deletions

View File

@ -235,7 +235,7 @@ public:
while (true) while (true)
{ {
u8 shouldExist = (list_cur ? 1 : 0); u8 shouldExist = !!list_cur;
Do(shouldExist); Do(shouldExist);
if (shouldExist == 1) if (shouldExist == 1)
{ {

View File

@ -770,8 +770,6 @@ void Wiimote::ControlChannel(const u16 _channelID, const void* _pData, u32 _Size
if (99 == _channelID) if (99 == _channelID)
{ {
// Wiimote disconnected // Wiimote disconnected
//PanicAlert( "Wiimote Disconnected" );
// reset eeprom/register/reporting mode // reset eeprom/register/reporting mode
Reset(); Reset();
return; return;

View File

@ -36,7 +36,7 @@ static volatile struct
void VideoBackendHardware::EmuStateChange(EMUSTATE_CHANGE newState) void VideoBackendHardware::EmuStateChange(EMUSTATE_CHANGE newState)
{ {
EmulatorState((newState == EMUSTATE_CHANGE_PLAY) ? true : false); EmulatorState(newState == EMUSTATE_CHANGE_PLAY);
} }
// Enter and exit the video loop // Enter and exit the video loop