mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
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.
This commit is contained in:
parent
51e8c2b277
commit
ea2964f5a1
8 changed files with 118 additions and 30 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue