summaryrefslogtreecommitdiff
path: root/core/io
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-03-07 12:05:35 +0100
committerGitHub <noreply@github.com>2022-03-07 12:05:35 +0100
commit6c3170e875bcb2606f08cde731f8b800801ef751 (patch)
tree09d0a82862991e975119fd29276b0fe7ba3a639d /core/io
parent8c3d8b12ed1b02670a58f8267ab414f76d00ce3f (diff)
parentf9d4f080901ffbe1b4cc92728c0bc41074068359 (diff)
Merge pull request #57930 from piiertho/bugfix/add-none-flag-to-resource-saver
Diffstat (limited to 'core/io')
-rw-r--r--core/io/resource_saver.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/io/resource_saver.h b/core/io/resource_saver.h
index 2919a4cec0..ebc3be91a1 100644
--- a/core/io/resource_saver.h
+++ b/core/io/resource_saver.h
@@ -71,6 +71,7 @@ class ResourceSaver {
public:
enum SaverFlags {
+ FLAG_NONE = 0,
FLAG_RELATIVE_PATHS = 1,
FLAG_BUNDLE_RESOURCES = 2,
FLAG_CHANGE_PATH = 4,
@@ -80,7 +81,7 @@ public:
FLAG_REPLACE_SUBRESOURCE_PATHS = 64,
};
- static Error save(const String &p_path, const RES &p_resource, uint32_t p_flags = 0);
+ static Error save(const String &p_path, const RES &p_resource, uint32_t p_flags = (uint32_t)FLAG_NONE);
static void get_recognized_extensions(const RES &p_resource, List<String> *p_extensions);
static void add_resource_format_saver(Ref<ResourceFormatSaver> p_format_saver, bool p_at_front = false);
static void remove_resource_format_saver(Ref<ResourceFormatSaver> p_format_saver);