diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2021-06-30 20:16:01 -0400 |
---|---|---|
committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2021-06-30 20:16:01 -0400 |
commit | 299c5594e6b36cef70b164e00eb671ed32c0d705 (patch) | |
tree | 57401c13a8758e699e241d0708a79fd5d2ecd30d /src/yuzu_cmd/config.h | |
parent | 0e5c74bc9e18974f3169766aec2dee0effdc8df1 (diff) |
yuzu_cmd: config: Pass a reference in
Also adds documentation for the ReadSetting function.
Address review comments.
Co-authored-by: Mai M. <mathew1800@gmail.com>
Diffstat (limited to 'src/yuzu_cmd/config.h')
-rw-r--r-- | src/yuzu_cmd/config.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/yuzu_cmd/config.h b/src/yuzu_cmd/config.h index bf0103dee..1ee932be2 100644 --- a/src/yuzu_cmd/config.h +++ b/src/yuzu_cmd/config.h @@ -26,6 +26,12 @@ public: void Reload(); private: + /** + * Applies a value read from the sdl2_config to a BasicSetting. + * + * @param group The name of the INI group + * @param setting The yuzu setting to modify + */ template <typename Type> - void ReadSetting(const std::string& group, Settings::BasicSetting<Type> setting); + void ReadSetting(const std::string& group, Settings::BasicSetting<Type>& setting); }; |