Mgfractal: Add 3D and 4D fractals
[oweals/minetest.git] / src / porting.h
index a86d37fbb91a50dcc1fc1381959ad34a8640f7c1..5da32607cfaa0897c87286670096c24ea6c5631a 100644 (file)
@@ -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__