HostInterface: Support per-controller-type settings

This commit is contained in:
Connor McLaughlin
2020-07-01 00:33:45 +10:00
parent f3b2953e40
commit 4dc9e10777
17 changed files with 247 additions and 7 deletions

View File

@ -456,6 +456,11 @@ void SDLHostInterface::Shutdown()
CommonHostInterface::Shutdown();
}
std::string SDLHostInterface::GetSettingValue(const char* section, const char* key, const char* default_value /*= ""*/)
{
return m_settings_interface->GetStringValue(section, key, default_value);
}
void SDLHostInterface::LoadSettings()
{
// Settings need to be loaded prior to creating the window for OpenGL bits.

View File

@ -34,6 +34,8 @@ public:
bool Initialize() override;
void Shutdown() override;
std::string GetSettingValue(const char* section, const char* key, const char* default_value = "") override;
void Run();
protected: