浏览代码

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)
Dario 2 年之前
父节点
当前提交
5f7685c831
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      methods.py

+ 3 - 0
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")