1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-07 17:36:07 +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 58aa020a19
commit 007cb5ccfb
7 changed files with 41 additions and 18 deletions

View File

@@ -230,10 +230,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 ".";
}