X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Ffile_system.hpp;h=9c14bac0a072ad489d14cd5d35debaba31d82e01;hb=eca1813742e9f0fc71268a0a2c0071380e9b850d;hp=306fbc9c6b27a788504f93b21a9a12364c800e19;hpb=07ddaed2a657e4d2a3d038fed223fc5827159caf;p=supertux.git diff --git a/src/file_system.hpp b/src/file_system.hpp index 306fbc9c6..9c14bac0a 100644 --- a/src/file_system.hpp +++ b/src/file_system.hpp @@ -27,6 +27,12 @@ namespace FileSystem { std::string dirname(const std::string& filename); std::string basename(const std::string& filename); + + /** + * remove everything starting from and including the last dot + */ + std::string strip_extension(const std::string& filename); + /** * normalize filename so that "blup/bla/blo/../../bar" will become * "blup/bar"