diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-09-10 11:47:42 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-10 11:47:42 -0300 |
commit | 7a27d5d9e7db4a52b1c9dcac474f6478d3c17efa (patch) | |
tree | 3b8abf061381d192728ca10d0a51a30e93dd6d89 /core/io | |
parent | c2b70fdd6947c397cf0ad3fd9aa1cceacaeb1ba3 (diff) | |
parent | 15458c8e6a4945ab27f9aa4ca31fd1eeef0e2cb7 (diff) |
Merge pull request #6363 from vnen/winrt
Fix the support for WinRT/UWP
Diffstat (limited to 'core/io')
-rw-r--r-- | core/io/file_access_pack.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/io/file_access_pack.cpp b/core/io/file_access_pack.cpp index 5c8c741f28..1632b841c6 100644 --- a/core/io/file_access_pack.cpp +++ b/core/io/file_access_pack.cpp @@ -409,6 +409,8 @@ Error DirAccessPack::change_dir(String p_dir) { nd=nd.simplify_path(); + if (nd == "") nd = "."; + if (nd.begins_with("/")) { nd=nd.replace_first("/","") ; absolute=true; |