From 4b73faefbe050acffa640d638b4bb3ef1cba2d45 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Sat, 29 Jan 2022 15:35:52 +0800 Subject: [PATCH] Fallback to env var so XAudio2 presence can be detected --- tool/quick_start/find_vstudio.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tool/quick_start/find_vstudio.py b/tool/quick_start/find_vstudio.py index 337f28b89..270264d02 100644 --- a/tool/quick_start/find_vstudio.py +++ b/tool/quick_start/find_vstudio.py @@ -156,7 +156,10 @@ def FindDirectXSDK(version): return "C:\\Program Files (x86)\\Microsoft DirectX SDK (June 2008)" if os.path.isfile("C:\\Program Files (x86)\\Microsoft DirectX SDK (June 2010)\\Include\\d3d9.h"): return "C:\\Program Files (x86)\\Microsoft DirectX SDK (June 2010)" - return + dxSdkDir = os.getenv('DXSDK_DIR') + if dxSdkDir and os.path.isfile(os.path.join(dxSdkDir, "Include\\d3d9.h")): + return dxSdkDir + return def HasXAudio2(path): if not path: