summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2021-03-02 02:53:22 +0100
committerGitHub <noreply@github.com>2021-03-02 02:53:22 +0100
commit59f416441155d62aac6d5ea73b6ac4b45bc87f93 (patch)
treea5fae1ed89c97225e00a53488d4c9c8e196b8bde /Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp
parent0c9f11af474f88d89af9a3dbe396fa65a2568deb (diff)
parent32d584a0f5f58ff80ab9ad95ff3d1b10e30d108f (diff)
Merge pull request #9539 from iwubcode/dynamic_input_tex_more_optimizations
InputCommon: dynamic input textures more optimizations
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp')
-rw-r--r--Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp b/Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp
index 8fc54fde06..a9c5844b48 100644
--- a/Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp
+++ b/Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp
@@ -112,12 +112,6 @@ void EmulatedController::SetDefaultDevice(ciface::Core::DeviceQualifier devq)
}
}
-void EmulatedController::SetDynamicInputTextureManager(
- InputCommon::DynamicInputTextureManager* dynamic_input_tex_config_manager)
-{
- m_dynamic_input_tex_config_manager = dynamic_input_tex_config_manager;
-}
-
void EmulatedController::LoadConfig(IniFile::Section* sec, const std::string& base)
{
std::string defdev = GetDefaultDevice().ToString();
@@ -129,11 +123,6 @@ void EmulatedController::LoadConfig(IniFile::Section* sec, const std::string& ba
for (auto& cg : groups)
cg->LoadConfig(sec, defdev, base);
-
- if (base.empty())
- {
- GenerateTextures(sec);
- }
}
void EmulatedController::SaveConfig(IniFile::Section* sec, const std::string& base)
@@ -144,11 +133,6 @@ void EmulatedController::SaveConfig(IniFile::Section* sec, const std::string& ba
for (auto& ctrlGroup : groups)
ctrlGroup->SaveConfig(sec, defdev, base);
-
- if (base.empty())
- {
- GenerateTextures(sec);
- }
}
void EmulatedController::LoadDefaults(const ControllerInterface& ciface)
@@ -163,12 +147,4 @@ void EmulatedController::LoadDefaults(const ControllerInterface& ciface)
SetDefaultDevice(default_device_string);
}
}
-
-void EmulatedController::GenerateTextures(IniFile::Section* sec)
-{
- if (m_dynamic_input_tex_config_manager)
- {
- m_dynamic_input_tex_config_manager->GenerateTextures(sec, GetName());
- }
-}
} // namespace ControllerEmu