X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FUtils%2FFolders.hpp;h=9d52c49291958df83401ed7ccd1496a9aab9af40;hb=30f342b219632ea3e777388a9530340baf4d7aac;hp=52be0f0d8b59d0b81042a6ef44308bfd3eb4e936;hpb=ed3662c0852c4312a612b4fc35bd03aba8d13db7;p=lugaru.git diff --git a/Source/Utils/Folders.hpp b/Source/Utils/Folders.hpp index 52be0f0..9d52c49 100644 --- a/Source/Utils/Folders.hpp +++ b/Source/Utils/Folders.hpp @@ -47,9 +47,6 @@ public: /* Returns path to the screenshot directory. Creates it if needed. */ static std::string getScreenshotDir(); - /* Returns full path for a game resource */ - static std::string getResourcePath(std::string filepath); - /* Returns full path for user data */ static std::string getUserDataPath(); @@ -58,6 +55,12 @@ public: static FILE* openMandatoryFile(std::string filename, const char* mode); + /* Returns full path for a game resource */ + static inline std::string getResourcePath(std::string filepath) { return dataDir + '/' + filepath; } + + /* Returns full path for user progress save */ + static inline std::string getUserSavePath() { return getUserDataPath() + "/users"; } + private: static const char* getHomeDirectory(); static std::string getGenericDirectory(const char* ENVVAR, const std::string fallback);