From cda4b4ebf3d6328c3987d4dd9e7df356a996541f Mon Sep 17 00:00:00 2001 From: Dario Date: Sat, 12 Aug 2023 10:42:48 -0300 Subject: [PATCH] Carry over the windows_subsystem setting to the generated vsproj if it's not the default. Even if you specify the subsystem to be the console one, the vsproj doesn't carry over the setting, which makes working with this mode in the IDE a bit annoying since it'll regenerate the vsproj right afterwards. Since there's only two options and 'gui' is the default, we only carry over the 'console' setting. --- methods.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/methods.py b/methods.py index 571a3f739eb..7c1781d699d 100644 --- a/methods.py +++ b/methods.py @@ -868,6 +868,9 @@ def generate_vs_project(env, num_jobs, project_name="godot"): if env["custom_modules"]: common_build_postfix.append("custom_modules=%s" % env["custom_modules"]) + if env["windows_subsystem"] == "console": + common_build_postfix.append("windows_subsystem=console") + if env["precision"] == "double": common_build_postfix.append("precision=double")