- added detection magic for the datadir
[supertux.git] / src / globals.cpp
1 //
2 // C Implementation: globals
3 //
4 // Description:
5 //
6 //
7 // Author: Tobias Glaesser <tobi.web@gmx.de>, (C) 2004
8 //
9 // Copyright: See COPYING file that comes with this distribution
10 //
11 //
12
13 #include "globals.h"
14
15 /** The datadir prefix prepended when loading game data file */
16 std::string datadir;
17
18 SDL_Surface * screen;
19 text_type black_text, gold_text, blue_text, red_text, yellow_nums, white_text, white_small_text, white_big_text;
20
21 int use_gl, use_joystick, use_fullscreen, debug_mode, show_fps;
22
23 char* level_startup_file = 0;
24 bool launch_worldmap_mode = false;
25
26 /* SuperTux directory ($HOME/.supertux) and save directory($HOME/.supertux/save) */
27 char *st_dir, *st_save_dir;
28
29 #ifdef JOY_YES
30 SDL_Joystick * js;
31 #endif
32
33