From b3a962945e82097fd472c6e1724785b11eaaa32f Mon Sep 17 00:00:00 2001 From: Marcel Admiraal Date: Tue, 8 Jun 2021 17:43:10 +0100 Subject: Add OS.get_external_data_dir() to get Android external directory --- platform/android/java/lib/src/org/godotengine/godot/GodotIO.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'platform/android/java/lib') 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(); } -- cgit v1.2.3