Skip to content

Commit

Permalink
Merge pull request #95656 from anvilfolk/gdscript-docs-quit
Browse files Browse the repository at this point in the history
Fix Godot not quitting with `--doctool --gdscript-docs`.
  • Loading branch information
akien-mga committed Aug 16, 2024
2 parents 8d65fd2 + 13b2082 commit 1bd740d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1511,6 +1511,9 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
main_args.push_back(arg);
main_args.push_back(N->get());
N = N->next();
// GDScript docgen requires Autoloads, but loading those also creates a main loop.
// This forces main loop to quit without adding more GDScript-specific exceptions to setup.
quit_after = 1;
} else {
OS::get_singleton()->print("Missing relative or absolute path to project for --gdscript-docs, aborting.\n");
goto error;
Expand Down

0 comments on commit 1bd740d

Please sign in to comment.