mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 17:19:44 -06:00
DiscIO: Add GetRegion function and Region enum
Instead of needing different switch cases for converting countries to regions in multiple places, we now only need a single country-to-region switch case (in DiscIO/Enums.cpp), and we get a nice Region type.
This commit is contained in:
@ -9,10 +9,10 @@
|
||||
|
||||
namespace DiscIO
|
||||
{
|
||||
enum class Country;
|
||||
enum class Region;
|
||||
}
|
||||
|
||||
struct CountrySetting
|
||||
struct RegionSetting
|
||||
{
|
||||
const std::string area;
|
||||
const std::string video;
|
||||
@ -57,5 +57,5 @@ private:
|
||||
static bool Load_BS2(const std::string& _rBootROMFilename);
|
||||
static void Load_FST(bool _bIsWii);
|
||||
|
||||
static bool SetupWiiMemory(DiscIO::Country country);
|
||||
static bool SetupWiiMemory(DiscIO::Region region);
|
||||
};
|
||||
|
Reference in New Issue
Block a user