Merge pull request #57930 from piiertho/bugfix/add-none-flag-to-resource-saver

This commit is contained in:
Rémi Verschelde
2022-03-07 12:05:35 +01:00
committed by GitHub
4 changed files with 12 additions and 6 deletions

View File

@ -94,6 +94,7 @@ protected:
public:
enum SaverFlags {
FLAG_NONE = 0,
FLAG_RELATIVE_PATHS = 1,
FLAG_BUNDLE_RESOURCES = 2,
FLAG_CHANGE_PATH = 4,
@ -105,7 +106,7 @@ public:
static ResourceSaver *get_singleton() { return singleton; }
Error save(const String &p_path, const RES &p_resource, SaverFlags p_flags);
Error save(const String &p_path, const RES &p_resource, uint32_t p_flags);
Vector<String> get_recognized_extensions(const RES &p_resource);
ResourceSaver() { singleton = this; }