1 #pragma once 2 3 #include "filesystem_def.h" 4 5 namespace Framework 6 { 7 namespace PathUtils 8 { 9 fs::path GetAppResourcesPath(); 10 fs::path GetRoamingDataPath(); 11 fs::path GetPersonalDataPath(); 12 fs::path GetCachePath(); 13 14 #ifdef _WIN32 15 fs::path GetPathFromCsidl(int); 16 #endif //WIN32 17 #if defined(__ANDROID__) 18 void SetFilesDirPath(const char*); 19 #endif 20 21 void EnsurePathExists(const fs::path&); 22 23 std::string GetNativeStringFromPath(const fs::path&); 24 fs::path GetPathFromNativeString(const std::string&); 25 }; 26 }; 27