diff options
| author | Mai <mai.iam2048@gmail.com> | 2024-02-05 09:47:08 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-05 09:47:08 -0500 |
| commit | 9240f579eab18a2f67eef23846a6b508393d0e6c (patch) | |
| tree | 80aea0c56b0108e60c0f791713be0960e490b407 /Source/Core/InputCommon/InputConfig.h | |
| parent | abbc4bd0bdff1a792bc0f6e912a022c17bd8668a (diff) | |
| parent | 1315b54ffaa2833ddda7e543945c88ed5396efd6 (diff) | |
Merge pull request #12561 from JosJuice/profile-consistency
InputCommon: Fix profile path inconsistencies
Diffstat (limited to 'Source/Core/InputCommon/InputConfig.h')
| -rw-r--r-- | Source/Core/InputCommon/InputConfig.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/Source/Core/InputCommon/InputConfig.h b/Source/Core/InputCommon/InputConfig.h index a0d0203df6..09b9f6c182 100644 --- a/Source/Core/InputCommon/InputConfig.h +++ b/Source/Core/InputCommon/InputConfig.h @@ -25,18 +25,11 @@ class InputConfig { public: InputConfig(const std::string& ini_name, const std::string& gui_name, - const std::string& profile_name); + const std::string& profile_directory_name, const std::string& profile_key); ~InputConfig(); - enum class InputClass - { - GC, - Wii, - GBA, - }; - - bool LoadConfig(InputClass type); + bool LoadConfig(); void SaveConfig(); template <typename T, typename... Args> @@ -51,7 +44,10 @@ public: bool IsControllerControlledByGamepadDevice(int index) const; std::string GetGUIName() const { return m_gui_name; } - std::string GetProfileName() const { return m_profile_name; } + std::string GetProfileKey() const { return m_profile_key; } + std::string GetProfileDirectoryName() const { return m_profile_directory_name; } + std::string GetUserProfileDirectoryPath() const; + std::string GetSysProfileDirectoryPath() const; int GetControllerCount() const; // These should be used after creating all controllers and before clearing them, respectively. @@ -65,6 +61,7 @@ private: std::vector<std::unique_ptr<ControllerEmu::EmulatedController>> m_controllers; const std::string m_ini_name; const std::string m_gui_name; - const std::string m_profile_name; + const std::string m_profile_directory_name; + const std::string m_profile_key; InputCommon::DynamicInputTextureManager m_dynamic_input_tex_config_manager; }; |
