diff options
Diffstat (limited to 'src/porting.h')
-rw-r--r-- | src/porting.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/porting.h b/src/porting.h index 1e89cd044..5da32607c 100644 --- a/src/porting.h +++ b/src/porting.h @@ -148,12 +148,23 @@ extern std::string path_user; extern std::string path_locale; /* + Path to directory for storing caches. +*/ +extern std::string path_cache; + +/* Get full path of stuff in data directory. Example: "stone.png" -> "../data/stone.png" */ std::string getDataPath(const char *subpath); /* + Move cache folder from path_user to the + system cache location if possible. +*/ +void migrateCachePath(); + +/* Initialize path_*. */ void initializePaths(); |