From: Ingo Ruhnke Date: Sun, 10 Aug 2014 01:29:28 +0000 (+0200) Subject: Load and save current profile to config file X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=ade3954d661035a8012e3fd476cc757242d9616e;p=supertux.git Load and save current profile to config file --- diff --git a/src/supertux/gameconfig.cpp b/src/supertux/gameconfig.cpp index 8b41febff..d874f6a19 100644 --- a/src/supertux/gameconfig.cpp +++ b/src/supertux/gameconfig.cpp @@ -61,6 +61,7 @@ Config::load() if(!config_lisp) throw std::runtime_error("File is not a supertux-config file"); + config_lisp->get("profile", profile); config_lisp->get("show_fps", show_fps); config_lisp->get("console", console_enabled); config_lisp->get("locale", locale); @@ -111,6 +112,7 @@ Config::save() writer.start_list("supertux-config"); + writer.write("profile", profile); writer.write("show_fps", show_fps); writer.write("console", console_enabled); writer.write("locale", locale);