projects
/
oweals
/
minetest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mgfractal: Add 3D and 4D fractals
[oweals/minetest.git]
/
src
/
porting.h
diff --git
a/src/porting.h
b/src/porting.h
index a4016e8d7b43e5ee4e4e6587cbb9c2b1bc83cdf2..5da32607cfaa0897c87286670096c24ea6c5631a 100644
(file)
--- a/
src/porting.h
+++ b/
src/porting.h
@@
-142,6
+142,16
@@
extern std::string path_share;
*/
extern std::string path_user;
*/
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"
/*
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);
/*
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();
*/
void initializePaths();
@@
-338,6
+354,7
@@
void setXorgClassHint(const video::SExposedVideoData &video_data,
// threads in the process inherit this exception handler
void setWin32ExceptionHandler();
// threads in the process inherit this exception handler
void setWin32ExceptionHandler();
+bool secure_rand_fill_buf(void *buf, size_t len);
} // namespace porting
#ifdef __ANDROID__
} // namespace porting
#ifdef __ANDROID__