summaryrefslogtreecommitdiffstats
path: root/core/io/resource.h
diff options
context:
space:
mode:
authorPedro J. Estébanez <pedrojrulez@gmail.com>2024-02-22 12:53:19 +0100
committerPedro J. Estébanez <pedrojrulez@gmail.com>2024-02-26 14:59:04 +0100
commit5e144022e70975a246a14f0343215cde92893b7b (patch)
treec0600708b1c97e924e8e99384f2f67384b6e09f8 /core/io/resource.h
parentbb6b06c81343073f10cbbd2af515cf0dac1e6549 (diff)
downloadredot-engine-5e144022e70975a246a14f0343215cde92893b7b.tar.gz
Enhance cache modes in resource loading
- Unify documentation, hoping to clear misconcepctions about about propagation of the cache mode across dependant loads. - Clarify in docs that `CACHE_MODE_REPLACE` now also works on the main resource (from #87008). - Add two recursive modes, counterparts of `CACHE_MODE_REPLACE` and `CACHE_MODE_IGNORE`, since it seems some need them (see #59669, #82830). - Let resources, even loaded with one of the ignore-cache modes, get a path, which is useful for tools.
Diffstat (limited to 'core/io/resource.h')
-rw-r--r--core/io/resource.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/resource.h b/core/io/resource.h
index b885b773ac..f0f686af57 100644
--- a/core/io/resource.h
+++ b/core/io/resource.h
@@ -106,7 +106,7 @@ public:
virtual void set_path(const String &p_path, bool p_take_over = false);
String get_path() const;
- void set_path_cache(const String &p_path); // Set raw path without involving resource cache.
+ virtual void set_path_cache(const String &p_path); // Set raw path without involving resource cache.
_FORCE_INLINE_ bool is_built_in() const { return path_cache.is_empty() || path_cache.contains("::") || path_cache.begins_with("local://"); }
static String generate_scene_unique_id();