diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2025-04-18 15:56:59 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-18 15:56:59 -0500 |
| commit | 056b0339be713abfcdb87ffc8fbb9fe4c712ac90 (patch) | |
| tree | 7bc9566e6247b80e85494c05d327b9c1ed176ae4 | |
| parent | f8bf35e6f01e0165e2877031bf19cd17e71e61e2 (diff) | |
| parent | 91380258a1254c0f31f767458137cbf18d791fca (diff) | |
Merge pull request #13496 from TryTwo/PR_GameSettings_Fix
Game config settings: Show global value when no game setting exists.
| -rw-r--r-- | Source/Core/DolphinQt/Config/ConfigControls/ConfigControl.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt/Config/ConfigControls/ConfigControl.h b/Source/Core/DolphinQt/Config/ConfigControls/ConfigControl.h index 508426d258..ee2f98d73d 100644 --- a/Source/Core/DolphinQt/Config/ConfigControls/ConfigControl.h +++ b/Source/Core/DolphinQt/Config/ConfigControls/ConfigControl.h @@ -76,8 +76,16 @@ protected: template <typename T> const T ReadValue(const Config::Info<T>& setting) const { + // For loading game specific settings. If the game setting doesn't exist, load the current + // global setting. There's no way to know what game is being edited, so GlobalGame settings + // can't be shown, but otherwise would be good to include. if (m_layer != nullptr) - return m_layer->Get(setting); + { + if (m_layer->Exists(m_location)) + return m_layer->Get(setting); + else + return Config::GetBase(setting); + } return Config::Get(setting); } |
