mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-09 12:29:35 +01:00
Fix FileCache for files in .pck-s.
This commit is contained in:
parent
8284ff56b8
commit
2400b14bb9
@ -85,6 +85,10 @@ bool FileCache::wwwroot_has_file(const String &file_path) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (fp.begins_with("res://")) {
|
||||
return true;
|
||||
}
|
||||
|
||||
String absp = f->get_path_absolute();
|
||||
memdelete(f);
|
||||
|
||||
@ -119,6 +123,10 @@ String FileCache::wwwroot_get_file_abspath(const String &file_path) {
|
||||
return String();
|
||||
}
|
||||
|
||||
if (fp.begins_with("res://")) {
|
||||
return fp;
|
||||
}
|
||||
|
||||
String absp = f->get_path_absolute();
|
||||
memdelete(f);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user