From f12cb82e0f7b3348ab678322cf5e729b38861f1e Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Thu, 4 Oct 2018 23:00:02 -0300 Subject: Fixes to baker, restored xatlas and fixed bake options. --- core/io/resource_loader.cpp | 2 ++ core/io/resource_loader.h | 4 ++++ 2 files changed, 6 insertions(+) (limited to 'core/io') diff --git a/core/io/resource_loader.cpp b/core/io/resource_loader.cpp index 8c56d55e85..d156a9f4bd 100644 --- a/core/io/resource_loader.cpp +++ b/core/io/resource_loader.cpp @@ -647,3 +647,5 @@ bool ResourceLoader::timestamp_on_load = false; SelfList::List ResourceLoader::remapped_list; HashMap > ResourceLoader::translation_remaps; HashMap ResourceLoader::path_remaps; + +ResourceLoaderImport ResourceLoader::import = NULL; diff --git a/core/io/resource_loader.h b/core/io/resource_loader.h index de0981350d..96bc6fa8dd 100644 --- a/core/io/resource_loader.h +++ b/core/io/resource_loader.h @@ -77,6 +77,8 @@ public: typedef void (*ResourceLoadErrorNotify)(void *p_ud, const String &p_text); typedef void (*DependencyErrorNotify)(void *p_ud, const String &p_loading, const String &p_which, const String &p_type); +typedef Error (*ResourceLoaderImport)(const String &p_path); + class ResourceLoader { enum { @@ -147,6 +149,8 @@ public: static void reload_translation_remaps(); static void load_translation_remaps(); static void clear_translation_remaps(); + + static ResourceLoaderImport import; }; #endif -- cgit v1.2.3