DiscIO: Add convenience methods IsDisc and IsWii for Platform enum

This commit is contained in:
JosJuice
2017-06-17 12:26:32 +02:00
parent e14a82a87e
commit 23bb029250
5 changed files with 19 additions and 7 deletions

View File

@ -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;