Merge pull request #2400 from lioncash/switch
WiiConfigPane: Handle switch cases explicitly
This commit is contained in:
commit
e4f23efdf6
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue