diff options
| author | Ignacio Etcheverry <neikeq@users.noreply.github.com> | 2018-09-17 20:22:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-17 20:22:05 +0200 |
| commit | a4e4dd396665a29dac63339930a97852bb8cd449 (patch) | |
| tree | da11096af8a17222c1ce1ddfee37617315cf5185 /modules/mono/editor/monodevelop_instance.cpp | |
| parent | 9610bc95803a3524ff1aa21b2fb7d2f94c41e4b4 (diff) | |
| parent | 50f6dbff871e9e7997b3b9e5a312cde206de62d4 (diff) | |
| download | redot-engine-a4e4dd396665a29dac63339930a97852bb8cd449.tar.gz | |
Merge pull request #22193 from neikeq/idontlikesanditscoarseandroughandirritatinganditgetseverywhere
Mono: Build and external editor improvements for OSX
Diffstat (limited to 'modules/mono/editor/monodevelop_instance.cpp')
| -rw-r--r-- | modules/mono/editor/monodevelop_instance.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/mono/editor/monodevelop_instance.cpp b/modules/mono/editor/monodevelop_instance.cpp index 9f05711fd6..1d858d80bf 100644 --- a/modules/mono/editor/monodevelop_instance.cpp +++ b/modules/mono/editor/monodevelop_instance.cpp @@ -47,7 +47,7 @@ void MonoDevelopInstance::execute(const Vector<String> &p_files) { execute_method->invoke(gc_handle->get_target(), args, &exc); if (exc) { - GDMonoUtils::debug_unhandled_exception(exc); + GDMonoUtils::debug_print_unhandled_exception(exc); ERR_FAIL(); } } @@ -59,7 +59,7 @@ void MonoDevelopInstance::execute(const String &p_file) { execute(files); } -MonoDevelopInstance::MonoDevelopInstance(const String &p_solution) { +MonoDevelopInstance::MonoDevelopInstance(const String &p_solution, EditorId p_editor_id) { _GDMONO_SCOPE_DOMAIN_(TOOLS_DOMAIN) @@ -67,15 +67,16 @@ MonoDevelopInstance::MonoDevelopInstance(const String &p_solution) { MonoObject *obj = mono_object_new(TOOLS_DOMAIN, klass->get_mono_ptr()); - GDMonoMethod *ctor = klass->get_method(".ctor", 1); + GDMonoMethod *ctor = klass->get_method(".ctor", 2); MonoException *exc = NULL; Variant solution = p_solution; - const Variant *args[1] = { &solution }; + Variant editor_id = p_editor_id; + const Variant *args[2] = { &solution, &editor_id }; ctor->invoke(obj, args, &exc); if (exc) { - GDMonoUtils::debug_unhandled_exception(exc); + GDMonoUtils::debug_print_unhandled_exception(exc); ERR_FAIL(); } |
