From 5f7685c83160d12010559c524d0ccc3aae9e4972 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. (cherry picked from commit cda4b4ebf3d6328c3987d4dd9e7df356a996541f) --- methods.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/methods.py b/methods.py index ec4d0b73255..97e9026fea8 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")