mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 21:22:48 +00:00
Fix root path resolution on PCK file
This commit is contained in:
parent
c1dfbb7628
commit
2eaad1cfd1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user