1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Add OS.get_external_data_dir() to get Android external directory

This commit is contained in:
Marcel Admiraal
2021-06-08 17:43:10 +01:00
parent 9539e4e39e
commit b3a962945e
10 changed files with 64 additions and 17 deletions

View File

@@ -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();
}