throw std::runtime_error("File is not a supertux-config file");
config_lisp->get("show_fps", show_fps);
throw std::runtime_error("File is not a supertux-config file");
config_lisp->get("show_fps", show_fps);
- config_lisp->get("cheats", cheats_enabled);
+ config_lisp->get("console", console_enabled);
+ config_lisp->get("random_seed", random_seed);
const lisp::Lisp* config_video_lisp = config_lisp->get_lisp("video");
if(config_video_lisp) {
config_video_lisp->get("fullscreen", use_fullscreen);
config_video_lisp->get("width", screenwidth);
config_video_lisp->get("height", screenheight);
const lisp::Lisp* config_video_lisp = config_lisp->get_lisp("video");
if(config_video_lisp) {
config_video_lisp->get("fullscreen", use_fullscreen);
config_video_lisp->get("width", screenwidth);
config_video_lisp->get("height", screenheight);
writer.start_list("supertux-config");
writer.write_bool("show_fps", show_fps);
writer.start_list("supertux-config");
writer.write_bool("show_fps", show_fps);
writer.start_list("video");
writer.write_bool("fullscreen", use_fullscreen);
writer.write_int("width", screenwidth);
writer.write_int("height", screenheight);
writer.start_list("video");
writer.write_bool("fullscreen", use_fullscreen);
writer.write_int("width", screenwidth);
writer.write_int("height", screenheight);