speedrun mode hotfixes (#1160)

This commit is contained in:
qwertyquerty
2026-05-13 00:10:25 -07:00
committed by GitHub
parent 9ce1ab7d5a
commit ce554a107d
3 changed files with 17 additions and 2 deletions
+10
View File
@@ -285,6 +285,16 @@ public:
layer = ConfigVarLayer::Value;
}
}
/**
* \brief Get the user-persisted value, ignoring any temporary overrides.
*
* Used by Save() to write the correct value even when a speedrun override is active.
*/
[[nodiscard]] constexpr const T& getValueForSave() const noexcept {
checkRegistered();
return layer == ConfigVarLayer::Default ? defaultValue : value;
}
};
using ActionBindConfigVar = ConfigVar<int>;