1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Add OS.get_external_data_dir() to get Android external directory

This commit is contained in:
Marcel Admiraal
2021-06-08 17:30:24 +01:00
parent d84d5a9665
commit 6d63ccba31
10 changed files with 64 additions and 17 deletions

View File

@@ -454,6 +454,10 @@ public class GodotIO {
return activity.getFilesDir().getAbsolutePath();
}
public String getExternalDataDir() {
return activity.getExternalFilesDir(null).getAbsolutePath();
}
public String getLocale() {
return Locale.getDefault().toString();
}