mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
Main: Fixup --dump-extension-api after #54017
That removal was correct, but triggered a bug in our messy-as-heck main.cpp detection logic for editor/project manager/project/command line tool... Fixing this is for another day.
This commit is contained in:
parent
dc81583fb7
commit
f4c3192d0a
3
.gitignore
vendored
3
.gitignore
vendored
@ -5,6 +5,9 @@
|
|||||||
# Documentation generated by doxygen or from classes.xml
|
# Documentation generated by doxygen or from classes.xml
|
||||||
doc/_build/
|
doc/_build/
|
||||||
|
|
||||||
|
# Extension API dump
|
||||||
|
extension_api.json
|
||||||
|
|
||||||
# Javascript specific
|
# Javascript specific
|
||||||
*.bc
|
*.bc
|
||||||
|
|
||||||
|
@ -918,6 +918,10 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
|||||||
cmdline_tool = true;
|
cmdline_tool = true;
|
||||||
dump_extension_api = true;
|
dump_extension_api = true;
|
||||||
print_line("Dumping Extension API");
|
print_line("Dumping Extension API");
|
||||||
|
// Hack. Not needed but otherwise we end up detecting that this should
|
||||||
|
// run the project instead of a cmdline tool.
|
||||||
|
// Needs full refactoring to fix properly.
|
||||||
|
main_args.push_back(I->get());
|
||||||
} else if (I->get() == "--export" || I->get() == "--export-debug" ||
|
} else if (I->get() == "--export" || I->get() == "--export-debug" ||
|
||||||
I->get() == "--export-pack") { // Export project
|
I->get() == "--export-pack") { // Export project
|
||||||
// Actually handling is done in start().
|
// Actually handling is done in start().
|
||||||
|
Loading…
Reference in New Issue
Block a user