mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-11 14:38:19 -05:00
android: Refactor settings to expose more options
In AbstractSetting, this removes the category, androidDefault, and valueAsString properties as they are no longer needed and have replacements. isSwitchable, global, and getValueAsString are all exposed and give better options for working with global/per-game settings.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user