Skip to content

Commit 1bd740d

Browse files
committed
Merge pull request #95656 from anvilfolk/gdscript-docs-quit
Fix Godot not quitting with `--doctool --gdscript-docs`.
2 parents 8d65fd2 + 13b2082 commit 1bd740d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1511,6 +1511,9 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
15111511
main_args.push_back(arg);
15121512
main_args.push_back(N->get());
15131513
N = N->next();
1514+
// GDScript docgen requires Autoloads, but loading those also creates a main loop.
1515+
// This forces main loop to quit without adding more GDScript-specific exceptions to setup.
1516+
quit_after = 1;
15141517
} else {
15151518
OS::get_singleton()->print("Missing relative or absolute path to project for --gdscript-docs, aborting.\n");
15161519
goto error;

0 commit comments

Comments
 (0)