diff options
| author | Anthony <Helios747@users.noreply.github.com> | 2017-02-26 15:56:34 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-26 15:56:34 -0800 |
| commit | 832e0501dbf361c84d7cc6a384ba3610b752e64f (patch) | |
| tree | 120597814e8bfaae7757cc3b27472a5cae254f9d /Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.cpp | |
| parent | 0dde642b7d65d9b0fdc680e1f4446a78f0a94b6a (diff) | |
| parent | 26f17a172353098740d97cce531f4c7c06abd4e4 (diff) | |
Merge pull request #4960 from lioncash/type
ControlGroup: Convert group type enum into an enum class
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.cpp b/Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.cpp index cd730697a5..0b8b7f19d9 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.cpp +++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.cpp @@ -14,12 +14,13 @@ namespace ControllerEmu { -ControlGroup::ControlGroup(const std::string& name_, const u32 type_) +ControlGroup::ControlGroup(const std::string& name_, const GroupType type_) : name(name_), ui_name(name_), type(type_) { } -ControlGroup::ControlGroup(const std::string& name_, const std::string& ui_name_, const u32 type_) +ControlGroup::ControlGroup(const std::string& name_, const std::string& ui_name_, + const GroupType type_) : name(name_), ui_name(ui_name_), type(type_) { } @@ -62,7 +63,7 @@ void ControlGroup::LoadConfig(IniFile::Section* sec, const std::string& defdev, } // extensions - if (type == GROUP_TYPE_EXTENSION) + if (type == GroupType::Extension) { Extension* const ext = (Extension*)this; @@ -115,7 +116,7 @@ void ControlGroup::SaveConfig(IniFile::Section* sec, const std::string& defdev, } // extensions - if (type == GROUP_TYPE_EXTENSION) + if (type == GroupType::Extension) { Extension* const ext = (Extension*)this; sec->Set(base + name, ext->attachments[ext->switch_extension]->GetName(), "None"); |
