From 299c5594e6b36cef70b164e00eb671ed32c0d705 Mon Sep 17 00:00:00 2001 From: lat9nq <22451773+lat9nq@users.noreply.github.com> Date: Wed, 30 Jun 2021 20:16:01 -0400 Subject: yuzu_cmd: config: Pass a reference in Also adds documentation for the ReadSetting function. Address review comments. Co-authored-by: Mai M. --- src/yuzu_cmd/config.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/yuzu_cmd/config.h') 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 - void ReadSetting(const std::string& group, Settings::BasicSetting setting); + void ReadSetting(const std::string& group, Settings::BasicSetting& setting); }; -- cgit v1.2.3