diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-07-05 12:44:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-05 12:44:55 +0200 |
commit | 4e7223ce497afb64e8f34f644d5eac215edeac89 (patch) | |
tree | 52b35daa802c4c3e5f4a3808b28f5308664e9325 /core/io | |
parent | fd10de5b948d6864a0ab6ff8b4beee665cc49e5d (diff) | |
parent | f9c19298ce9ba7a9a9943949b40c757979706a5a (diff) |
Merge pull request #62459 from m4gr3d/refactor_android_storage_handling_main
Diffstat (limited to 'core/io')
-rw-r--r-- | core/io/dir_access.cpp | 4 | ||||
-rw-r--r-- | core/io/dir_access.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/core/io/dir_access.cpp b/core/io/dir_access.cpp index 433a7efb21..0a900078b7 100644 --- a/core/io/dir_access.cpp +++ b/core/io/dir_access.cpp @@ -181,6 +181,10 @@ Error DirAccess::make_dir_recursive(String p_dir) { return OK; } +DirAccess::AccessType DirAccess::get_access_type() const { + return _access_type; +} + String DirAccess::fix_path(String p_path) const { switch (_access_type) { case ACCESS_RESOURCES: { diff --git a/core/io/dir_access.h b/core/io/dir_access.h index 0125f011b5..22017efaa3 100644 --- a/core/io/dir_access.h +++ b/core/io/dir_access.h @@ -57,6 +57,7 @@ protected: String _get_root_path() const; String _get_root_string() const; + AccessType get_access_type() const; String fix_path(String p_path) const; template <class T> |