Moved folding outside the resource files, now saved outside the project.
This commit is contained in:
@ -259,6 +259,10 @@ RES ResourceLoader::load(const String &p_path, const String &p_type_hint, bool p
|
||||
}
|
||||
#endif
|
||||
|
||||
if (_loaded_callback) {
|
||||
_loaded_callback(res, p_path);
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
@ -635,6 +639,12 @@ void ResourceLoader::clear_path_remaps() {
|
||||
path_remaps.clear();
|
||||
}
|
||||
|
||||
void ResourceLoader::set_load_callback(ResourceLoadedCallback p_callback) {
|
||||
_loaded_callback = p_callback;
|
||||
}
|
||||
|
||||
ResourceLoadedCallback ResourceLoader::_loaded_callback = NULL;
|
||||
|
||||
ResourceLoadErrorNotify ResourceLoader::err_notify = NULL;
|
||||
void *ResourceLoader::err_notify_ud = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user