aboutsummaryrefslogtreecommitdiff
path: root/src/common/settings_setting.h
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-12-16 13:57:54 -0500
committerGitHub <noreply@github.com>2023-12-16 13:57:54 -0500
commit00965e6c3433794c3654fccb119edcf9d6bcca99 (patch)
tree4b07c0caee8a9a45f18c0f1ec6036e71a3915682 /src/common/settings_setting.h
parent4bf1f217ae28357e753f7e9cadd0a1baf05d2192 (diff)
parent86d26914a2e7b250d346a8aad84783aef1a6850b (diff)
Merge pull request #12335 from t895/per-game-settings
android: Game Properties
Diffstat (limited to 'src/common/settings_setting.h')
-rw-r--r--src/common/settings_setting.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/settings_setting.h b/src/common/settings_setting.h
index 3175ab07d..0b18ca5ec 100644
--- a/src/common/settings_setting.h
+++ b/src/common/settings_setting.h
@@ -81,6 +81,9 @@ public:
[[nodiscard]] virtual const Type& GetValue() const {
return value;
}
+ [[nodiscard]] virtual const Type& GetValue(bool need_global) const {
+ return value;
+ }
/**
* Sets the setting to the given value.
@@ -353,7 +356,7 @@ public:
}
return custom;
}
- [[nodiscard]] const Type& GetValue(bool need_global) const {
+ [[nodiscard]] const Type& GetValue(bool need_global) const override final {
if (use_global || need_global) {
return this->value;
}