|
@@ -564,11 +564,7 @@ namespace mono_bind {
|
|
|
|
|
|
GodotSharp *GodotSharp::singleton = nullptr;
|
|
GodotSharp *GodotSharp::singleton = nullptr;
|
|
|
|
|
|
-bool GodotSharp::_is_runtime_initialized() {
|
|
|
|
- return GDMono::get_singleton() != nullptr && GDMono::get_singleton()->is_runtime_initialized();
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-void GodotSharp::_reload_assemblies(bool p_soft_reload) {
|
|
|
|
|
|
+void GodotSharp::reload_assemblies(bool p_soft_reload) {
|
|
#ifdef GD_MONO_HOT_RELOAD
|
|
#ifdef GD_MONO_HOT_RELOAD
|
|
CRASH_COND(CSharpLanguage::get_singleton() == nullptr);
|
|
CRASH_COND(CSharpLanguage::get_singleton() == nullptr);
|
|
// This method may be called more than once with `call_deferred`, so we need to check
|
|
// This method may be called more than once with `call_deferred`, so we need to check
|
|
@@ -579,11 +575,6 @@ void GodotSharp::_reload_assemblies(bool p_soft_reload) {
|
|
#endif
|
|
#endif
|
|
}
|
|
}
|
|
|
|
|
|
-void GodotSharp::_bind_methods() {
|
|
|
|
- ClassDB::bind_method(D_METHOD("is_runtime_initialized"), &GodotSharp::_is_runtime_initialized);
|
|
|
|
- ClassDB::bind_method(D_METHOD("_reload_assemblies"), &GodotSharp::_reload_assemblies);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
GodotSharp::GodotSharp() {
|
|
GodotSharp::GodotSharp() {
|
|
singleton = this;
|
|
singleton = this;
|
|
}
|
|
}
|