Implement get_cache_path() for iOS, and improve it for Android and Windows
This commit is contained in:
parent
58aa020a19
commit
007cb5ccfb
7 changed files with 41 additions and 18 deletions
|
|
@ -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 ".";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue