diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-12-04 16:43:00 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-12-07 09:36:54 +0100 |
commit | cff4af018ff2d6ccd150a537af785368c70e4bf4 (patch) | |
tree | 2808fd8db864638acd4093886ff2191f33db3328 /main | |
parent | 2f73a059cefadcd944b6874f2557ec82e46a562d (diff) | |
download | redot-engine-cff4af018ff2d6ccd150a537af785368c70e4bf4.tar.gz |
CI: Add 4.2-stable.expected file for GDExtension compatibility checks
Diffstat (limited to 'main')
-rw-r--r-- | main/main.cpp | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/main/main.cpp b/main/main.cpp index 3d703578a0..95d414a9f7 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -2987,24 +2987,28 @@ bool Main::start() { return false; } - if (dump_gdextension_interface) { - GDExtensionInterfaceDump::generate_gdextension_interface_file("gdextension_interface.h"); - } + // GDExtension API and interface. + { + if (dump_gdextension_interface) { + GDExtensionInterfaceDump::generate_gdextension_interface_file("gdextension_interface.h"); + } - if (dump_extension_api) { - Engine::get_singleton()->set_editor_hint(true); // "extension_api.json" should always contains editor singletons. - GDExtensionAPIDump::generate_extension_json_file("extension_api.json", include_docs_in_extension_api_dump); - } + if (dump_extension_api) { + Engine::get_singleton()->set_editor_hint(true); // "extension_api.json" should always contains editor singletons. + GDExtensionAPIDump::generate_extension_json_file("extension_api.json", include_docs_in_extension_api_dump); + } - if (dump_gdextension_interface || dump_extension_api) { - OS::get_singleton()->set_exit_code(EXIT_SUCCESS); - return false; - } + if (dump_gdextension_interface || dump_extension_api) { + OS::get_singleton()->set_exit_code(EXIT_SUCCESS); + return false; + } - if (validate_extension_api) { - bool valid = GDExtensionAPIDump::validate_extension_json_file(validate_extension_api_file) == OK; - OS::get_singleton()->set_exit_code(valid ? EXIT_SUCCESS : EXIT_FAILURE); - return false; + if (validate_extension_api) { + Engine::get_singleton()->set_editor_hint(true); // "extension_api.json" should always contains editor singletons. + bool valid = GDExtensionAPIDump::validate_extension_json_file(validate_extension_api_file) == OK; + OS::get_singleton()->set_exit_code(valid ? EXIT_SUCCESS : EXIT_FAILURE); + return false; + } } #ifndef DISABLE_DEPRECATED |