mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-28 09:59:32 -06:00
WiiConfigPane: Handle switch cases explicitly
Gets rid of a warning on higher warning levels (switching on an enum type should handle cases explicitly)
This commit is contained in:
@ -164,8 +164,10 @@ u8 WiiConfigPane::GetSADRCountryCode(DiscIO::IVolume::ELanguage language)
|
||||
return 157; // China
|
||||
case DiscIO::IVolume::LANGUAGE_KOREAN:
|
||||
return 136; // Korea
|
||||
default:
|
||||
PanicAlert("Invalid language");
|
||||
return 1;
|
||||
case DiscIO::IVolume::LANGUAGE_UNKNOWN:
|
||||
break;
|
||||
}
|
||||
|
||||
PanicAlert("Invalid language. Defaulting to Japanese.");
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user