summaryrefslogtreecommitdiffstats
path: root/core/core_bind.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-02-29 13:54:07 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-02-29 13:54:07 +0100
commit172b2546871ae6f6e3c1d63fd2b4c40a7a9a9c3d (patch)
tree73627f420c0d622ff4358b665a3403381404438f /core/core_bind.h
parentda916221a71eaa0a66b8e84bd6ce05229786aa12 (diff)
parent5e144022e70975a246a14f0343215cde92893b7b (diff)
downloadredot-engine-172b2546871ae6f6e3c1d63fd2b4c40a7a9a9c3d.tar.gz
Merge pull request #88664 from RandomShaper/res_load_modes
Enhance cache modes in resource loading
Diffstat (limited to 'core/core_bind.h')
-rw-r--r--core/core_bind.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/core_bind.h b/core/core_bind.h
index f884426881..3440531124 100644
--- a/core/core_bind.h
+++ b/core/core_bind.h
@@ -63,9 +63,11 @@ public:
};
enum CacheMode {
- CACHE_MODE_IGNORE, // Resource and subresources do not use path cache, no path is set into resource.
- CACHE_MODE_REUSE, // Resource and subresources use patch cache, reuse existing loaded resources instead of loading from disk when available.
- CACHE_MODE_REPLACE, // Resource and subresource use path cache, but replace existing loaded resources when available with information from disk.
+ CACHE_MODE_IGNORE,
+ CACHE_MODE_REUSE,
+ CACHE_MODE_REPLACE,
+ CACHE_MODE_IGNORE_DEEP,
+ CACHE_MODE_REPLACE_DEEP,
};
static ResourceLoader *get_singleton() { return singleton; }