|
@@ -39,6 +39,7 @@
|
|
#include "core/os/file_access.h"
|
|
#include "core/os/file_access.h"
|
|
#include "core/os/os.h"
|
|
#include "core/os/os.h"
|
|
#include "core/string/ucaps.h"
|
|
#include "core/string/ucaps.h"
|
|
|
|
+#include "main/main.h"
|
|
|
|
|
|
#include "../glue/cs_glue_version.gen.h"
|
|
#include "../glue/cs_glue_version.gen.h"
|
|
#include "../godotsharp_defs.h"
|
|
#include "../godotsharp_defs.h"
|
|
@@ -3649,6 +3650,7 @@ void BindingsGenerator::handle_cmdline_args(const List<String> &p_cmdline_args)
|
|
|
|
|
|
if (!bindings_generator.initialized) {
|
|
if (!bindings_generator.initialized) {
|
|
ERR_PRINT("Failed to initialize the bindings generator");
|
|
ERR_PRINT("Failed to initialize the bindings generator");
|
|
|
|
+ Main::cleanup(true);
|
|
::exit(0);
|
|
::exit(0);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -3675,6 +3677,7 @@ void BindingsGenerator::handle_cmdline_args(const List<String> &p_cmdline_args)
|
|
}
|
|
}
|
|
|
|
|
|
// Exit once done
|
|
// Exit once done
|
|
|
|
+ Main::cleanup(true);
|
|
::exit(0);
|
|
::exit(0);
|
|
}
|
|
}
|
|
}
|
|
}
|