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/godotsharp_editor.h | |
parent | b032738a51e225c265131c46e5dd026687a40c19 (diff) | |
download | redot-engine-50f6dbff871e9e7997b3b9e5a312cde206de62d4.tar.gz |
Mono: Fix opening code editors in OSX and cleanup
Diffstat (limited to 'modules/mono/editor/godotsharp_editor.h')
-rw-r--r-- | modules/mono/editor/godotsharp_editor.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/modules/mono/editor/godotsharp_editor.h b/modules/mono/editor/godotsharp_editor.h index 66da814c8b..46b6bd5ebf 100644 --- a/modules/mono/editor/godotsharp_editor.h +++ b/modules/mono/editor/godotsharp_editor.h @@ -50,7 +50,10 @@ class GodotSharpEditor : public Node { GodotSharpBuilds *godotsharp_builds; - MonoDevelopInstance *monodevel_instance; + MonoDevelopInstance *monodevelop_instance; +#ifdef OSX_ENABLED + MonoDevelopInstance *visualstudio_mac_instance; +#endif bool _create_project_solution(); @@ -74,12 +77,24 @@ public: enum ExternalEditor { EDITOR_NONE, +#ifdef WINDOWS_ENABLED + //EDITOR_VISUALSTUDIO, // TODO EDITOR_MONODEVELOP, - EDITOR_CODE, + EDITOR_VSCODE +#elif OSX_ENABLED + EDITOR_VISUALSTUDIO_MAC, + EDITOR_MONODEVELOP, + EDITOR_VSCODE +#elif UNIX_ENABLED + EDITOR_MONODEVELOP, + EDITOR_VSCODE +#endif }; _FORCE_INLINE_ static GodotSharpEditor *get_singleton() { return singleton; } + static void register_internal_calls(); + void show_error_dialog(const String &p_message, const String &p_title = "Error"); Error open_in_external_editor(const Ref<Script> &p_script, int p_line, int p_col); |