mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-02 07:36:34 +00: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:
parent
6aef0630f7
commit
66ea9f5cc1
26 changed files with 218 additions and 158 deletions
|
@ -20,6 +20,7 @@ namespace DiscIO
|
|||
enum class BlobType;
|
||||
enum class Country;
|
||||
enum class Language;
|
||||
enum class Region;
|
||||
enum class Platform;
|
||||
|
||||
class CVolumeWiiCrypted : public IVolume
|
||||
|
@ -46,6 +47,7 @@ public:
|
|||
bool CheckIntegrity() const override;
|
||||
bool ChangePartition(u64 offset) override;
|
||||
|
||||
Region GetRegion() const override;
|
||||
Country GetCountry() const override;
|
||||
BlobType GetBlobType() const override;
|
||||
u64 GetSize() const override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue