diff options
author | George Marques <george@gmarqu.es> | 2016-09-03 19:35:42 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2016-09-03 19:35:42 -0300 |
commit | 2eaad1cfd1c96538d7aaf8bbd46535f8a143d2ad (patch) | |
tree | 1f3a23eba97e55ab657805566f1204191b6014c4 | |
parent | c1dfbb7628e93370217eff204d997640793054e4 (diff) |
Fix root path resolution on PCK file
-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; |