summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorocean <anvilfolk@gmail.com>2024-08-16 15:22:17 -0400
committerRémi Verschelde <rverschelde@gmail.com>2024-09-16 16:55:26 +0200
commit6eea970e8cae85c3f1a091e730540083a9cf0763 (patch)
tree46f9e2d39e57aa11ef777f20126b3dbb3b48e4cf /main
parent6aff947ee55e0bd4105f936ced2efdb61e7c8cc3 (diff)
downloadredot-engine-6eea970e8cae85c3f1a091e730540083a9cf0763.tar.gz
Fix Godot not quitting with `--doctool --gdscript-docs`.
(cherry picked from commit 13b20820ba78bff60a8ec293c8c66159e0a949ec)
Diffstat (limited to 'main')
-rw-r--r--main/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp
index 3a6b3aa273..ca9b9d732f 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -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;