mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 11:32:13 +00:00
DirAccessPack: Fix file_exists and dir_exists in exported projects
This commit is contained in:
parent
e25776e95c
commit
1b4f6f6bfa
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user