X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fgameconfig.hpp;h=ac45730c709a0551fdd13b783ee452eed7db5117;hb=24dee16ba721c757b53c3cca08951c867b49c6a7;hp=1602787991ab1e71e14163d22771baaa205ff411;hpb=d963f8dc3d2c4e432d3eeecd15351169e10243da;p=supertux.git diff --git a/src/gameconfig.hpp b/src/gameconfig.hpp index 160278799..ac45730c7 100644 --- a/src/gameconfig.hpp +++ b/src/gameconfig.hpp @@ -19,14 +19,18 @@ #ifndef SUPERTUX_CONFIG_H #define SUPERTUX_CONFIG_H +#include + #include +#include "video/video_systems.hpp" + class Config { public: Config(); ~Config(); - + void load(); void save(); @@ -36,12 +40,15 @@ public: */ int screenwidth; int screenheight; + float aspect_ratio; bool use_fullscreen; + VideoSystem video; + bool try_vsync; bool show_fps; bool sound_enabled; bool music_enabled; - bool cheats_enabled; + bool console_enabled; int random_seed; // initial random seed. 0 ==> set from time() @@ -50,6 +57,8 @@ public: bool enable_script_debugger; std::string start_demo; std::string record_demo; + + std::string locale; /**< force SuperTux language to this locale, e.g. "de". A file "data/locale/xx.po" must exist for this to work. An empty string means autodetect. */ }; extern Config* config;