summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPāvels Nadtočajevs <7645683+bruvzg@users.noreply.github.com>2024-11-13 09:50:10 +0200
committerPāvels Nadtočajevs <7645683+bruvzg@users.noreply.github.com>2024-11-13 09:50:10 +0200
commit93a21c3efc081618ed4a72f9ff9dc2063aea77e7 (patch)
treecbf660752bffe77c82e5f5a20c5e07b801c90684
parentcb411fa960f0b7fdbd97dcdb4c90f9346360ee0e (diff)
downloadredot-engine-93a21c3efc081618ed4a72f9ff9dc2063aea77e7.tar.gz
Fix PackedData::has_path() using wrong path format.
-rw-r--r--core/io/file_access_pack.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/file_access_pack.h b/core/io/file_access_pack.h
index bf44b3a2db..b957a43de2 100644
--- a/core/io/file_access_pack.h
+++ b/core/io/file_access_pack.h
@@ -205,7 +205,7 @@ Ref<FileAccess> PackedData::try_open_path(const String &p_path) {
}
bool PackedData::has_path(const String &p_path) {
- return files.has(PathMD5(p_path.simplify_path().md5_buffer()));
+ return files.has(PathMD5(p_path.simplify_path().trim_prefix("res://").md5_buffer()));
}
bool PackedData::has_directory(const String &p_path) {