X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fgameconfig.cpp;h=49728045ff1a22cb3c30123d3953680bfd8cfa6e;hb=99cf62c2d44b4555e9761f1c8f1b10cf880c33fb;hp=060eed074714099b0829ec58dade027f36533eb3;hpb=0608116fe96de0edda6dcd8d1e0e528ff1c73f9f;p=supertux.git diff --git a/src/gameconfig.cpp b/src/gameconfig.cpp index 060eed074..49728045f 100644 --- a/src/gameconfig.cpp +++ b/src/gameconfig.cpp @@ -36,7 +36,8 @@ Config* config = 0; Config::Config() { use_fullscreen = true; - video = AUTO_VIDEO; + //video = AUTO_VIDEO; + video = "auto"; try_vsync = true; show_fps = false; sound_enabled = true; @@ -74,9 +75,10 @@ Config::load() const lisp::Lisp* config_video_lisp = config_lisp->get_lisp("video"); if(config_video_lisp) { config_video_lisp->get("fullscreen", use_fullscreen); - std::string video_string; - config_video_lisp->get("video", video_string); - video = get_video_system(video_string); + //std::string video_string; + //config_video_lisp->get("video", video_string); + //video = get_video_system(video_string); + config_video_lisp->get("video", video); config_video_lisp->get("vsync", try_vsync); config_video_lisp->get("width", screenwidth); config_video_lisp->get("height", screenheight); @@ -108,7 +110,8 @@ Config::save() writer.start_list("video"); writer.write_bool("fullscreen", use_fullscreen); - writer.write_string("video", get_video_string(video)); + //writer.write_string("video", get_video_string(video)); + writer.write_string("video", video); writer.write_bool("vsync", try_vsync); writer.write_int("width", screenwidth); writer.write_int("height", screenheight);