X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=lib%2Fapp%2Fsetup.h;h=98e947f8a62a9a25c3200d6f3eb48b1d4a668fa8;hb=c0093d25093395cb62fc2526ab42be65a9f015b8;hp=9d05267c1cefbc2a5d5bc284bcfda354f6439add;hpb=6a03a65019a3f5218f5775dfc08fa81f42573fcb;p=supertux.git diff --git a/lib/app/setup.h b/lib/app/setup.h index 9d05267c1..98e947f8a 100644 --- a/lib/app/setup.h +++ b/lib/app/setup.h @@ -23,45 +23,22 @@ #include #include #include -#include "../gui/menu.h" namespace SuperTux { /// File system utility functions struct FileSystem { - static int faccessible(const std::string& filename); - static int fcreatedir(const std::string& relative_dir); - static int fwriteable(const std::string& filename); + static bool faccessible(const std::string& filename); + static bool fcreatedir(const std::string& relative_dir); + static bool fwriteable(const std::string& filename); static std::set read_directory(const std::string& pathname); static std::set dsubdirs(const std::string& rel_path, const std::string& expected_file); static std::set dfiles(const std::string& rel_path, const std::string& glob, const std::string& exception_str); - }; - -/// All you need to get an application up and running -struct Setup - { - static void info(const std::string& _package_name, const std::string& _package_symbol_name, const std::string& _package_version); - static void directories(void); - static void general(void); - static void general_free(); - static void video(unsigned int screen_w, unsigned int screen_h); - static void audio(void); - static void joystick(void); - static void parseargs(int argc, char * argv[]); - private: - static void video_sdl(unsigned int screen_w, unsigned int screen_h); - static void video_gl(unsigned int screen_w, unsigned int screen_h); + static std::string dirname(const std::string& filename); }; -/// Termination handling -struct Termination - { - static void shutdown(void); - static void abort(const std::string& reason, const std::string& details); - }; - } //namespace SuperTux #endif /*SUPERTUX_SETUP_H*/