You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-24 15:26:15 +00:00
Fix root path resolution on PCK file
This commit is contained in:
@@ -398,6 +398,8 @@ Error DirAccessPack::change_dir(String p_dir) {
|
|||||||
|
|
||||||
nd = nd.simplify_path();
|
nd = nd.simplify_path();
|
||||||
|
|
||||||
|
if (nd == "") nd = ".";
|
||||||
|
|
||||||
if (nd.begins_with("/")) {
|
if (nd.begins_with("/")) {
|
||||||
nd = nd.replace_first("/", "");
|
nd = nd.replace_first("/", "");
|
||||||
absolute = true;
|
absolute = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user