summaryrefslogtreecommitdiff
path: root/platform/android/java/lib
diff options
context:
space:
mode:
authorMarcel Admiraal <madmiraal@users.noreply.github.com>2021-06-08 17:43:10 +0100
committerMarcel Admiraal <madmiraal@users.noreply.github.com>2021-06-10 16:48:17 +0100
commitb3a962945e82097fd472c6e1724785b11eaaa32f (patch)
tree71473572d7946b4eebf3650364404a07395ce037 /platform/android/java/lib
parent9539e4e39e489e750c7ec99d84b93dce283fe721 (diff)
Add OS.get_external_data_dir() to get Android external directory
Diffstat (limited to 'platform/android/java/lib')
-rw-r--r--platform/android/java/lib/src/org/godotengine/godot/GodotIO.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/android/java/lib/src/org/godotengine/godot/GodotIO.java b/platform/android/java/lib/src/org/godotengine/godot/GodotIO.java
index c7c7c1b40c..8a345de5ea 100644
--- a/platform/android/java/lib/src/org/godotengine/godot/GodotIO.java
+++ b/platform/android/java/lib/src/org/godotengine/godot/GodotIO.java
@@ -452,6 +452,10 @@ public class GodotIO {
return activity.getFilesDir().getAbsolutePath();
}
+ public String getExternalDataDir() {
+ return activity.getExternalFilesDir(null).getAbsolutePath();
+ }
+
public String getLocale() {
return Locale.getDefault().toString();
}