diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-11-18 09:23:37 -0600 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-11-18 09:23:37 -0600 |
commit | 80e73b0dcac55a76db04036c7cd562393bc62be1 (patch) | |
tree | ce2caca657f6c21c710e61b392c75898e7c0ba59 | |
parent | 1c1e833a432e8517625ef78ed636b9028835a562 (diff) | |
parent | 1b4f6f6bfaa050b12b76c7b2f484f7c2620390f3 (diff) | |
download | redot-engine-80e73b0dcac55a76db04036c7cd562393bc62be1.tar.gz |
Merge pull request #98483 from timothyqiu/pack-dir-exists
`DirAccessPack`: Fix `file_exists` and `dir_exists` in exported projects
-rw-r--r-- | core/io/file_access_pack.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/core/io/file_access_pack.cpp b/core/io/file_access_pack.cpp index b9af1bfb57..8b6b445cea 100644 --- a/core/io/file_access_pack.cpp +++ b/core/io/file_access_pack.cpp @@ -590,8 +590,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; @@ -600,8 +598,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; } |