Fallback to env var so XAudio2 presence can be detected

feature/quick-start-py
kaetemi 3 years ago
parent da648d8fc2
commit 4b73faefbe
No known key found for this signature in database
GPG Key ID: 9873C4D40BB479BC

@ -156,6 +156,9 @@ def FindDirectXSDK(version):
return "C:\\Program Files (x86)\\Microsoft DirectX SDK (June 2008)" 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"): 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 "C:\\Program Files (x86)\\Microsoft DirectX SDK (June 2010)"
dxSdkDir = os.getenv('DXSDK_DIR')
if dxSdkDir and os.path.isfile(os.path.join(dxSdkDir, "Include\\d3d9.h")):
return dxSdkDir
return return
def HasXAudio2(path): def HasXAudio2(path):

Loading…
Cancel
Save