Fix FileCache for files in .pck-s.

This commit is contained in:
Relintai 2024-02-16 22:12:17 +01:00
parent 8284ff56b8
commit 2400b14bb9

View File

@ -85,6 +85,10 @@ bool FileCache::wwwroot_has_file(const String &file_path) {
return false; return false;
} }
if (fp.begins_with("res://")) {
return true;
}
String absp = f->get_path_absolute(); String absp = f->get_path_absolute();
memdelete(f); memdelete(f);
@ -119,6 +123,10 @@ String FileCache::wwwroot_get_file_abspath(const String &file_path) {
return String(); return String();
} }
if (fp.begins_with("res://")) {
return fp;
}
String absp = f->get_path_absolute(); String absp = f->get_path_absolute();
memdelete(f); memdelete(f);