diff options
| author | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2018-09-17 16:40:26 +0200 |
|---|---|---|
| committer | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2018-09-17 20:00:19 +0200 |
| commit | 50f6dbff871e9e7997b3b9e5a312cde206de62d4 (patch) | |
| tree | a319006f25c0b09286a57df88b23dd88b1b34ac5 /modules/mono/editor/monodevelop_instance.cpp | |
| parent | b032738a51e225c265131c46e5dd026687a40c19 (diff) | |
| download | redot-engine-50f6dbff871e9e7997b3b9e5a312cde206de62d4.tar.gz | |
Mono: Fix opening code editors in OSX and cleanup
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(); } |
