You've already forked godot
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:
@@ -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 ".";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user