mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-02 11:02:28 +02: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:
parent
7dc6728464
commit
af2daf6c5c
@ -164,8 +164,10 @@ u8 WiiConfigPane::GetSADRCountryCode(DiscIO::IVolume::ELanguage language)
|
|||||||
return 157; // China
|
return 157; // China
|
||||||
case DiscIO::IVolume::LANGUAGE_KOREAN:
|
case DiscIO::IVolume::LANGUAGE_KOREAN:
|
||||||
return 136; // Korea
|
return 136; // Korea
|
||||||
default:
|
case DiscIO::IVolume::LANGUAGE_UNKNOWN:
|
||||||
PanicAlert("Invalid language");
|
break;
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PanicAlert("Invalid language. Defaulting to Japanese.");
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user