summaryrefslogtreecommitdiffstats
path: root/modules/mono/editor/godotsharp_export.cpp
diff options
context:
space:
mode:
authorIgnacio Etcheverry <ignalfonsore@gmail.com>2018-02-22 13:13:51 +0100
committerIgnacio Etcheverry <ignalfonsore@gmail.com>2018-02-25 20:56:27 +0100
commitf37090ccf4f699800a43878273b8b94b5906f4bc (patch)
tree2ae483b9c89320bacd7e6ad1939448d9741ba0d9 /modules/mono/editor/godotsharp_export.cpp
parent125fc8cc4432d28e63da76c3a2aff655b1a7cc6b (diff)
downloadredot-engine-f37090ccf4f699800a43878273b8b94b5906f4bc.tar.gz
Mono: Better versioning and gracefully unloading of Godot API assemblies
Diffstat (limited to 'modules/mono/editor/godotsharp_export.cpp')
-rw-r--r--modules/mono/editor/godotsharp_export.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/mono/editor/godotsharp_export.cpp b/modules/mono/editor/godotsharp_export.cpp
index 387929a02e..cd09e6516a 100644
--- a/modules/mono/editor/godotsharp_export.cpp
+++ b/modules/mono/editor/godotsharp_export.cpp
@@ -55,6 +55,9 @@ void GodotSharpExport::_export_begin(const Set<String> &p_features, bool p_debug
// TODO right now there is no way to stop the export process with an error
+ ERR_FAIL_COND(!GDMono::get_singleton()->is_runtime_initialized());
+ ERR_FAIL_NULL(GDMono::get_singleton()->get_tools_domain());
+
String build_config = p_debug ? "Debug" : "Release";
ERR_FAIL_COND(!GodotSharpBuilds::build_project_blocking(build_config));