X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fgameconfig.hpp;h=222823e049e7de44b05ad0b5ee63a702118875f5;hb=7a6f00e27bdc0aac2107506c3b00cbf0bf1cccc5;hp=eb9a32022e435d023f966d8285fa58b8bc66918e;hpb=2f9e19ce4e01dc769ae7b2a7129109e0e81a6b5b;p=supertux.git diff --git a/src/gameconfig.hpp b/src/gameconfig.hpp index eb9a32022..222823e04 100644 --- a/src/gameconfig.hpp +++ b/src/gameconfig.hpp @@ -1,7 +1,7 @@ -// $Id: configfile.h 2293 2005-03-25 20:39:56Z matzebraun $ +// $Id$ // -// SuperTux - A Jump'n Run -// Copyright (C) 2004 Michael George +// SuperTux= +// Copyright (C) 2006 Matthias Braun // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License @@ -19,34 +19,55 @@ #ifndef SUPERTUX_CONFIG_H #define SUPERTUX_CONFIG_H +#include + #include +#include "video/video_systems.hpp" + class Config { public: Config(); ~Config(); - + void load(); void save(); - /** screen width in pixel (warning: this is the real screen width+height, - * supertux is using a logical width+height and not this one) - */ - int screenwidth; - int screenheight; - bool use_gl; + int profile; + + // the width/height to be used to display the game in fullscreen + int fullscreen_width; + int fullscreen_height; + + // the width/height of the window managers window + int window_width; + int window_height; + + // the aspect ratio + int aspect_width; + int aspect_height; + + float magnification; + bool stretch_to_window; 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() /** this variable is set if supertux should start in a specific level */ std::string start_level; + 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;