The SuperTux library features a SuperTux namespace now.
[supertux.git] / lib / app / 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 <vector>
24 #include <string>
25 #include "gui/menu.h"
26 #include "audio/sound.h"
27 #include "special/base.h"
28
29 namespace SuperTux {
30
31 int faccessible(const char *filename);
32 int fcreatedir(const char* relative_dir);
33 int fwriteable(const char *filename);
34 std::vector<std::string> read_directory(const std::string& pathname);
35
36 FILE * opendata(const char * filename, const char * mode);
37 string_list_type dsubdirs(const char *rel_path, const char* expected_file);
38 string_list_type dfiles(const char *rel_path, const char* glob, const char* exception_str);
39 void free_strings(char **strings, int num);
40 void st_directory_setup(void);
41 void st_general_setup(void);
42 void st_general_free();
43 void st_video_setup_sdl(void);
44 void st_video_setup_gl(void);
45 void st_video_setup(void);
46 void st_audio_setup(void);
47 void st_joystick_setup(void);
48 void st_shutdown(void);
49 void st_abort(const std::string& reason, const std::string& details);
50
51 void parseargs(int argc, char * argv[]);
52
53 }
54
55 #endif /*SUPERTUX_SETUP_H*/
56