diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-08-17 00:47:17 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-08-17 00:47:17 +0200 |
commit | 1bd740d18d714f815486b04bf4c6154ef6c355d9 (patch) | |
tree | c9917de4c6a3881b8240440efa5147dd381a5d01 | |
parent | 8d65fd2b325bc17740672b7a64a9b5db05476b3e (diff) | |
parent | 13b20820ba78bff60a8ec293c8c66159e0a949ec (diff) | |
download | redot-engine-1bd740d18d714f815486b04bf4c6154ef6c355d9.tar.gz |
Merge pull request #95656 from anvilfolk/gdscript-docs-quit
Fix Godot not quitting with `--doctool --gdscript-docs`.
-rw-r--r-- | main/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp index 2b5d52d92e..bdae1bb1b0 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; |