summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2024-10-24 14:26:36 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2024-10-24 14:26:36 +0800
commit1b4f6f6bfaa050b12b76c7b2f484f7c2620390f3 (patch)
tree10d573d47550fef433d7ff0fbdfdd50360a06bf1
parente25776e95cd372319f42651b88d0a62cb00ebd40 (diff)
downloadredot-engine-1b4f6f6bfaa050b12b76c7b2f484f7c2620390f3.tar.gz
DirAccessPack: Fix file_exists and dir_exists in exported projects
-rw-r--r--core/io/file_access_pack.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/core/io/file_access_pack.cpp b/core/io/file_access_pack.cpp
index 1340382eaa..47724f8e7d 100644
--- a/core/io/file_access_pack.cpp
+++ b/core/io/file_access_pack.cpp
@@ -544,8 +544,6 @@ String DirAccessPack::get_current_dir(bool p_include_drive) const {
}
bool DirAccessPack::file_exists(String p_file) {
- p_file = fix_path(p_file);
-
PackedData::PackedDir *pd = _find_dir(p_file.get_base_dir());
if (!pd) {
return false;
@@ -554,8 +552,6 @@ bool DirAccessPack::file_exists(String p_file) {
}
bool DirAccessPack::dir_exists(String p_dir) {
- p_dir = fix_path(p_dir);
-
return _find_dir(p_dir) != nullptr;
}