diff options
author | ShadowNinja <shadowninja@minetest.net> | 2015-08-24 17:00:06 -0400 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2015-12-07 13:51:41 -0500 |
commit | ea2964f5a168cb52d1b9f74a08f00c7c068c6649 (patch) | |
tree | 77785296ca680eced53d3c3e976a5dc948d5df30 /src/filesys.cpp | |
parent | 51e8c2b27786c050f0271eeeaed5eea17d62f0a0 (diff) | |
download | hax-minetest-server-ea2964f5a168cb52d1b9f74a08f00c7c068c6649.tar.gz hax-minetest-server-ea2964f5a168cb52d1b9f74a08f00c7c068c6649.zip |
Add seperate cache path
This is set to the XDG cache path where possible.
It's set to the app's cache path on Android.
Diffstat (limited to 'src/filesys.cpp')
-rw-r--r-- | src/filesys.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/filesys.cpp b/src/filesys.cpp index 4cefdb807..5fdc97634 100644 --- a/src/filesys.cpp +++ b/src/filesys.cpp @@ -707,5 +707,10 @@ bool safeWriteToFile(const std::string &path, const std::string &content) } } +bool Rename(const std::string &from, const std::string &to) +{ + return rename(from.c_str(), to.c_str()) == 0; +} + } // namespace fs |