mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
InputCommon: Refactor away InputConfig::LoadConfig's switch case
By having getters for this information, other code that needs access to the same information can call the getters instead of duplicating the information.
This commit is contained in:
@ -207,7 +207,7 @@ static std::array<u32, NUM_HOTKEY_GROUPS> s_hotkey_down;
|
||||
static HotkeyStatus s_hotkey;
|
||||
static bool s_enabled;
|
||||
|
||||
static InputConfig s_config("Hotkeys", _trans("Hotkeys"), "Hotkeys");
|
||||
static InputConfig s_config("Hotkeys", _trans("Hotkeys"), "Hotkeys", InputConfig::InputClass::GC);
|
||||
|
||||
InputConfig* GetConfig()
|
||||
{
|
||||
@ -304,7 +304,7 @@ void Initialize()
|
||||
|
||||
void LoadConfig()
|
||||
{
|
||||
s_config.LoadConfig(InputConfig::InputClass::GC);
|
||||
s_config.LoadConfig();
|
||||
LoadLegacyConfig(s_config.GetController(0));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user