From 3922367dec058b680fabc41f32e9b507822abe2b Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 11 Jun 2019 22:59:06 +0800 Subject: improve xp mode --- core/src/demo/xmake.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/src/demo/xmake.lua b/core/src/demo/xmake.lua index ea6f6765e..bd8e1d230 100644 --- a/core/src/demo/xmake.lua +++ b/core/src/demo/xmake.lua @@ -39,7 +39,13 @@ target("demo") end -- enable xp compatibility mode - add_ldflags("/subsystem:console,\"5.01\"") + if is_plat("windows") then + if is_arch("x86") then + add_ldflags("/subsystem:console,\"5.01\"") + else + add_ldflags("/subsystem:console,\"5.02\"") + end + end -- copy target to the build directory after_build(function (target) -- cgit v1.3.1