diff options
author | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2021-06-08 17:43:10 +0100 |
---|---|---|
committer | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2021-06-10 16:48:17 +0100 |
commit | b3a962945e82097fd472c6e1724785b11eaaa32f (patch) | |
tree | 71473572d7946b4eebf3650364404a07395ce037 /core/os | |
parent | 9539e4e39e489e750c7ec99d84b93dce283fe721 (diff) |
Add OS.get_external_data_dir() to get Android external directory
Diffstat (limited to 'core/os')
-rw-r--r-- | core/os/os.cpp | 5 | ||||
-rw-r--r-- | core/os/os.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/core/os/os.cpp b/core/os/os.cpp index ca1b798e11..c5463cf216 100644 --- a/core/os/os.cpp +++ b/core/os/os.cpp @@ -310,6 +310,11 @@ String OS::get_user_data_dir() const { return "."; } +// Android OS path to app's external data storage +String OS::get_external_data_dir() const { + return get_user_data_dir(); +}; + // Absolute path to res:// String OS::get_resource_dir() const { return ProjectSettings::get_singleton()->get_resource_path(); diff --git a/core/os/os.h b/core/os/os.h index 7198607237..5bf9dc9288 100644 --- a/core/os/os.h +++ b/core/os/os.h @@ -252,6 +252,7 @@ public: virtual String get_bundle_resource_dir() const; virtual String get_user_data_dir() const; + virtual String get_external_data_dir() const; virtual String get_resource_dir() const; enum SystemDir { |