X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=lib%2Fapp%2Fsetup.h;h=ad70bd4d81bb2eb5ef33a5f291d4149ded7af73c;hb=8e0bad9f82ccbc811a18edd7ce6c6f69c5bca082;hp=2eebb380f25313ac1ab02a6a655dc704cc364386;hpb=b2d8d1eac9fd6328d3a8c61cf09d4b2882145042;p=supertux.git diff --git a/lib/app/setup.h b/lib/app/setup.h index 2eebb380f..ad70bd4d8 100644 --- a/lib/app/setup.h +++ b/lib/app/setup.h @@ -21,27 +21,28 @@ #define SUPERTUX_SETUP_H #include +#include #include -#include "../gui/menu.h" -#include "../special/base.h" namespace SuperTux { /// File system utility functions struct FileSystem { - static int faccessible(const char *filename); - static int fcreatedir(const char* relative_dir); - static int fwriteable(const char *filename); - static std::vector read_directory(const std::string& pathname); - static string_list_type dsubdirs(const char *rel_path, const char* expected_file); - static string_list_type dfiles(const char *rel_path, const char* glob, const char* exception_str); + 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); + + static std::string dirname(const std::string& filename); }; /// 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 init(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();