X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fsetup.h;h=331a7656a4add42162e18d6e2376e0a0c5a1107d;hb=84160722392a024dda42bd86ca9bd85b68c49457;hp=9e2ff62a479e4cbdf3adac53e5c380157ff5e415;hpb=e1c9b4aa6ae0d46827ee614f9121f5d84fdffc51;p=supertux.git diff --git a/src/setup.h b/src/setup.h index 9e2ff62a4..331a7656a 100644 --- a/src/setup.h +++ b/src/setup.h @@ -1,14 +1,21 @@ -/* - setup.h - - Super Tux - Setup - - by Bill Kendrick - bill@newbreedsoftware.com - http://www.newbreedsoftware.com/supertux/ - - April 11, 2000 - March 15, 2004 -*/ +// $Id$ +// +// SuperTux - A Jump'n Run +// Copyright (C) 2000 Bill Kendrick +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef SUPERTUX_SETUP_H #define SUPERTUX_SETUP_H @@ -17,11 +24,12 @@ #include "sound.h" #include "type.h" -int faccessible(char *filename); -int fcreatedir(char* relative_dir); -int fwriteable(char *filename); -string_list_type dsubdirs(char *rel_path, char* expected_file); -string_list_type dfiles(char *rel_path, char* glob, char* exception_str); +int faccessible(const char *filename); +int fcreatedir(const char* relative_dir); +int fwriteable(const char *filename); +FILE * opendata(const char * filename, const char * mode); +string_list_type dsubdirs(const char *rel_path, const char* expected_file); +string_list_type dfiles(const char *rel_path, const char* glob, const char* exception_str); void free_strings(char **strings, int num); void st_directory_setup(void); void st_general_setup(void); @@ -32,10 +40,13 @@ void st_audio_setup(void); void st_joystick_setup(void); void st_shutdown(void); void st_menu(void); -void st_abort(char * reason, char * details); +void st_abort(const std::string& reason, const std::string& details); void process_options_menu(void); -void process_save_load_game_menu(int save); -void update_load_save_game_menu(menu_type* pmenu, int load); + +/** Return true if the gameloop() was entered, false otherwise */ +bool process_load_game_menu(); + +void update_load_save_game_menu(Menu* pmenu); void parseargs(int argc, char * argv[]); #endif /*SUPERTUX_SETUP_H*/