X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fporting.h;h=5da32607cfaa0897c87286670096c24ea6c5631a;hb=c26eb87aec7438d167fa2f460a3f412db09c0ac5;hp=a86d37fbb91a50dcc1fc1381959ad34a8640f7c1;hpb=645e2086734e3d2d1ec95f50faa39f0f24304761;p=oweals%2Fminetest.git diff --git a/src/porting.h b/src/porting.h index a86d37fbb..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_*. */ @@ -343,6 +354,7 @@ void setXorgClassHint(const video::SExposedVideoData &video_data, // threads in the process inherit this exception handler void setWin32ExceptionHandler(); +bool secure_rand_fill_buf(void *buf, size_t len); } // namespace porting #ifdef __ANDROID__