Fix binary internal cache not being filled

This commit is contained in:
Francois Belair 2022-08-11 22:33:21 -04:00
parent 850c5ccccf
commit d331e5c7ac
2 changed files with 4 additions and 3 deletions

View file

@ -315,7 +315,7 @@ Error ResourceInteractiveLoaderBinary::parse_variant(Variant &r_v) {
path = remaps[path];
}
RES res = ResourceLoader::load(path, exttype, no_subresource_cache);
RES res = ResourceLoader::load(path, exttype, false);
if (res.is_null()) {
WARN_PRINT(String("Couldn't load resource: " + path).utf8().get_data());
@ -608,7 +608,7 @@ Error ResourceInteractiveLoaderBinary::poll() {
if (remaps.has(path)) {
path = remaps[path];
}
RES res = ResourceLoader::load(path, external_resources[s].type, no_subresource_cache);
RES res = ResourceLoader::load(path, external_resources[s].type, false);
if (res.is_null()) {
if (!ResourceLoader::get_abort_on_missing_resources()) {
ResourceLoader::notify_dependency_error(local_path, path, external_resources[s].type);
@ -711,6 +711,7 @@ Error ResourceInteractiveLoaderBinary::poll() {
#endif
stage++;
internal_resources_cache[subindex] = res;
resource_cache.push_back(res);
if (main) {

View file

@ -403,7 +403,7 @@ Error ResourceInteractiveLoaderText::poll() {
path = remaps[path];
}
RES res = ResourceLoader::load(path, type, no_subresource_cache);
RES res = ResourceLoader::load(path, type, false);
if (res.is_null()) {
if (ResourceLoader::get_abort_on_missing_resources()) {