*/
extern std::string path_user;
+/*
+ Path to gettext locale files
+*/
+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);
/*
- Initialize path_share and path_user.
+ Move cache folder from path_user to the
+ system cache location if possible.
+*/
+void migrateCachePath();
+
+/*
+ Initialize path_*.
*/
void initializePaths();
// threads in the process inherit this exception handler
void setWin32ExceptionHandler();
+bool secure_rand_fill_buf(void *buf, size_t len);
} // namespace porting
#ifdef __ANDROID__