1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

Implement get_cache_path() for iOS, and improve it for Android and Windows

This commit is contained in:
Pedro J. Estébanez
2021-02-22 22:54:12 +01:00
parent 5eb80bb1a3
commit 25f01cb09d
7 changed files with 41 additions and 18 deletions

View File

@@ -452,10 +452,13 @@ String OS_Android::get_user_data_dir() const {
}
String OS_Android::get_cache_path() const {
if (cache_dir_cache != String())
return cache_dir_cache;
String cache_dir = godot_io_java->get_cache_dir();
if (cache_dir != "") {
cache_dir = _remove_symlink(cache_dir);
return cache_dir;
cache_dir_cache = _remove_symlink(cache_dir);
return cache_dir_cache;
}
return ".";
}