mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07: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;
|
||||
|
||||
Reference in New Issue
Block a user