From 4d5a87a4225782cef357b9814fd47e4a26653e34 Mon Sep 17 00:00:00 2001 From: RoyBerube Date: Sun, 19 Nov 2017 13:55:38 -0700 Subject: [PATCH] Visual Studio project creation bug fix A bug in the /drivers SCons script was preventing files in the /drivers and some in the /thirdparty directories from being added to the VS project. This will only affect builds that use the 'vsproj=yes' option. --- drivers/SCsub | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/SCsub b/drivers/SCsub index 34d62545784..938927f3a9f 100644 --- a/drivers/SCsub +++ b/drivers/SCsub @@ -34,7 +34,12 @@ if env['tools']: SConscript("convex_decomp/SCsub") if env['vsproj']: + import os + path = os.getcwd() + # Change directory so the path resolves correctly in the function call. + os.chdir("..") env.AddToVSProject(env.drivers_sources) + os.chdir(path) if env.split_drivers: env.split_lib("drivers")