-// $Id: configfile.h 2293 2005-03-25 20:39:56Z matzebraun $
+// $Id$
//
-// SuperTux - A Jump'n Run
-// Copyright (C) 2004 Michael George <mike@georgetech.com>
+// SuperTux=
+// Copyright (C) 2006 Matthias Braun <matze@braunis.de>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
#ifndef SUPERTUX_CONFIG_H
#define SUPERTUX_CONFIG_H
+#include <config.h>
+
#include <string>
+#include "video/video_systems.hpp"
+
class Config
{
public:
Config();
~Config();
-
+
void load();
void save();
*/
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()
/** 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;