X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=lib%2Fapp%2Fsetup.h;h=ad70bd4d81bb2eb5ef33a5f291d4149ded7af73c;hb=073795dd0afc7d7e4c093db5f83fc26c10501d61;hp=f48a4ab14075db8e745217946ab35a93bbae2cb8;hpb=ac9e53e5d668d20fcae8c6ac728602d5359a6004;p=supertux.git diff --git a/lib/app/setup.h b/lib/app/setup.h index f48a4ab14..ad70bd4d8 100644 --- a/lib/app/setup.h +++ b/lib/app/setup.h @@ -29,12 +29,14 @@ 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); + + static std::string dirname(const std::string& filename); }; /// All you need to get an application up and running