Skip to content

Commit

Permalink
Load and save current profile to config file
Browse files Browse the repository at this point in the history
  • Loading branch information
Grumbel committed Aug 10, 2014
1 parent 84a585d commit ade3954
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/supertux/gameconfig.cpp
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit ade3954

Please sign in to comment.