TODO update
[supertux.git] / src / setup.h
1 //  $Id$
2 //
3 //  SuperTux -  A Jump'n Run
4 //  Copyright (C) 2000 Bill Kendrick <bill@newbreedsoftware.com>
5 //
6 //  This program is free software; you can redistribute it and/or
7 //  modify it under the terms of the GNU General Public License
8 //  as published by the Free Software Foundation; either version 2
9 //  of the License, or (at your option) any later version.
10 //
11 //  This program is distributed in the hope that it will be useful,
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 //  GNU General Public License for more details.
15 //
16 //  You should have received a copy of the GNU General Public License
17 //  along with this program; if not, write to the Free Software
18 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19
20 #ifndef SUPERTUX_SETUP_H
21 #define SUPERTUX_SETUP_H
22
23 #include "menu.h"
24 #include "sound.h"
25 #include "type.h"
26
27 int faccessible(const char *filename);
28 int fcreatedir(const char* relative_dir);
29 int fwriteable(const char *filename);
30 FILE * opendata(const char * filename, const char * mode);
31 string_list_type dsubdirs(const char *rel_path, const char* expected_file);
32 string_list_type dfiles(const char *rel_path, const char* glob, const char* exception_str);
33 void free_strings(char **strings, int num);
34 void st_directory_setup(void);
35 void st_general_setup(void);
36 void st_general_free();
37 void st_video_setup_sdl(void);
38 void st_video_setup_gl(void);
39 void st_video_setup(void);
40 void st_audio_setup(void);
41 void st_joystick_setup(void);
42 void st_shutdown(void);
43 void st_menu(void);
44 void st_abort(const std::string& reason, const std::string& details);
45 void process_options_menu(void);
46
47 /** Return true if the gameloop() was entered, false otherwise */
48 bool process_load_game_menu();
49
50 void update_load_save_game_menu(Menu* pmenu);
51 void parseargs(int argc, char * argv[]);
52
53 #endif /*SUPERTUX_SETUP_H*/
54