summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRoyBerube <royberube1965@gmail.com>2017-11-19 13:55:38 -0700
committerRoyBerube <royberube1965@gmail.com>2017-11-19 13:56:48 -0700
commit4d5a87a4225782cef357b9814fd47e4a26653e34 (patch)
tree16d2e368c3499918e14f4a00de347590ea8806e9 /drivers
parentd40b1825fc7c21b80a9482ff7e3ee571dc237d17 (diff)
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.
Diffstat (limited to 'drivers')
-rw-r--r--drivers/SCsub5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/SCsub b/drivers/SCsub
index 34d6254578..938927f3a9 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")