From ea2964f5a168cb52d1b9f74a08f00c7c068c6649 Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Mon, 24 Aug 2015 17:00:06 -0400 Subject: Add seperate cache path This is set to the XDG cache path where possible. It's set to the app's cache path on Android. --- src/porting.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/porting.h') diff --git a/src/porting.h b/src/porting.h index 1e89cd044..5da32607c 100644 --- a/src/porting.h +++ b/src/porting.h @@ -147,12 +147,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_*. */ -- cgit v1.2.3