projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84a585d
)
Load and save current profile to config file
author
Ingo Ruhnke
<grumbel@gmail.com>
Sun, 10 Aug 2014 01:29:28 +0000
(
03:29
+0200)
committer
Ingo Ruhnke
<grumbel@gmail.com>
Sun, 10 Aug 2014 01:29:28 +0000
(
03:29
+0200)
src/supertux/gameconfig.cpp
patch
|
blob
|
history
diff --git
a/src/supertux/gameconfig.cpp
b/src/supertux/gameconfig.cpp
index
8b41feb
..
d874f6a
100644
(file)
--- 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);