mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
DiscIO: Add convenience methods IsDisc and IsWii for Platform enum
This commit is contained in:
@ -11,6 +11,16 @@
|
||||
|
||||
namespace DiscIO
|
||||
{
|
||||
bool IsDisc(Platform volume_type)
|
||||
{
|
||||
return volume_type == Platform::GAMECUBE_DISC || volume_type == Platform::WII_DISC;
|
||||
}
|
||||
|
||||
bool IsWii(Platform volume_type)
|
||||
{
|
||||
return volume_type == Platform::WII_DISC || volume_type == Platform::WII_WAD;
|
||||
}
|
||||
|
||||
bool IsNTSC(Region region)
|
||||
{
|
||||
return region == Region::NTSC_J || region == Region::NTSC_U || region == Region::NTSC_K;
|
||||
|
@ -68,6 +68,8 @@ enum class Language
|
||||
LANGUAGE_UNKNOWN
|
||||
};
|
||||
|
||||
bool IsDisc(Platform volume_type);
|
||||
bool IsWii(Platform volume_type);
|
||||
bool IsNTSC(Region region);
|
||||
Country TypicalCountryForRegion(Region region);
|
||||
Region RegionSwitchGC(u8 country_code);
|
||||
|
Reference in New Issue
Block a user