Mgfractal: Add 3D and 4D fractals
[oweals/minetest.git] / src / porting.h
index a4016e8d7b43e5ee4e4e6587cbb9c2b1bc83cdf2..5da32607cfaa0897c87286670096c24ea6c5631a 100644 (file)
@@ -142,6 +142,16 @@ extern std::string path_share;
 */
 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"
@@ -149,7 +159,13 @@ extern std::string path_user;
 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();
 
@@ -338,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__