|
@@ -36,6 +36,10 @@
|
|
|
#include "core/object/worker_thread_pool.h"
|
|
|
#include "core/os/thread.h"
|
|
|
|
|
|
+namespace core_bind {
|
|
|
+class ResourceLoader;
|
|
|
+}
|
|
|
+
|
|
|
class ConditionVariable;
|
|
|
|
|
|
template <int Tag>
|
|
@@ -101,6 +105,7 @@ typedef void (*ResourceLoadedCallback)(Ref<Resource> p_resource, const String &p
|
|
|
|
|
|
class ResourceLoader {
|
|
|
friend class LoadToken;
|
|
|
+ friend class core_bind::ResourceLoader;
|
|
|
|
|
|
enum {
|
|
|
MAX_LOADERS = 64
|
|
@@ -217,6 +222,8 @@ private:
|
|
|
|
|
|
static bool _ensure_load_progress();
|
|
|
|
|
|
+ static String _validate_local_path(const String &p_path);
|
|
|
+
|
|
|
public:
|
|
|
static Error load_threaded_request(const String &p_path, const String &p_type_hint = "", bool p_use_sub_threads = false, ResourceFormatLoader::CacheMode p_cache_mode = ResourceFormatLoader::CACHE_MODE_REUSE);
|
|
|
static ThreadLoadStatus load_threaded_get_status(const String &p_path, float *r_progress = nullptr);
|