From 2400b14bb9a0bd18efb7907b5564e14d088e54a4 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 16 Feb 2024 22:12:17 +0100 Subject: [PATCH] Fix FileCache for files in .pck-s. --- modules/web/file_cache.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/web/file_cache.cpp b/modules/web/file_cache.cpp index 8029af73a..763fe5242 100644 --- a/modules/web/file_cache.cpp +++ b/modules/web/file_cache.cpp @@ -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);