|
@@ -1704,6 +1704,18 @@ def SdkLocateDirectX( strMode = 'default' ):
|
|
|
print("Using DirectX SDK June 2010")
|
|
print("Using DirectX SDK June 2010")
|
|
|
SDK["DX9"] = dir.replace("\\", "/").rstrip("/")
|
|
SDK["DX9"] = dir.replace("\\", "/").rstrip("/")
|
|
|
SDK["GENERIC_DXERR_LIBRARY"] = 1;
|
|
SDK["GENERIC_DXERR_LIBRARY"] = 1;
|
|
|
|
|
+ if ("DX9" not in SDK):
|
|
|
|
|
+ dir = "C:/Program Files (x86)/Microsoft DirectX SDK (June 2010)"
|
|
|
|
|
+ if os.path.isdir(dir):
|
|
|
|
|
+ print("Using DirectX SDK June 2010")
|
|
|
|
|
+ SDK["DX9"] = dir
|
|
|
|
|
+ SDK["GENERIC_DXERR_LIBRARY"] = 1
|
|
|
|
|
+ if ("DX9" not in SDK):
|
|
|
|
|
+ dir = "C:/Program Files/Microsoft DirectX SDK (June 2010)"
|
|
|
|
|
+ if os.path.isdir(dir):
|
|
|
|
|
+ print("Using DirectX SDK June 2010")
|
|
|
|
|
+ SDK["DX9"] = dir
|
|
|
|
|
+ SDK["GENERIC_DXERR_LIBRARY"] = 1
|
|
|
if ("DX9" not in SDK):
|
|
if ("DX9" not in SDK):
|
|
|
dir = GetRegistryKey("SOFTWARE\\Wow6432Node\\Microsoft\\DirectX\\Microsoft DirectX SDK (August 2009)", "InstallPath")
|
|
dir = GetRegistryKey("SOFTWARE\\Wow6432Node\\Microsoft\\DirectX\\Microsoft DirectX SDK (August 2009)", "InstallPath")
|
|
|
if (dir != 0):
|
|
if (dir != 0):
|
|
@@ -1738,21 +1750,32 @@ def SdkLocateDirectX( strMode = 'default' ):
|
|
|
SDK["DX9"] = dir.replace("\\", "/").rstrip("/")
|
|
SDK["DX9"] = dir.replace("\\", "/").rstrip("/")
|
|
|
if ("DX9" not in SDK):
|
|
if ("DX9" not in SDK):
|
|
|
return
|
|
return
|
|
|
|
|
+
|
|
|
elif strMode == 'jun2010':
|
|
elif strMode == 'jun2010':
|
|
|
if ("DX9" not in SDK):
|
|
if ("DX9" not in SDK):
|
|
|
dir = GetRegistryKey("SOFTWARE\\Wow6432Node\\Microsoft\\DirectX\\Microsoft DirectX SDK (June 2010)", "InstallPath")
|
|
dir = GetRegistryKey("SOFTWARE\\Wow6432Node\\Microsoft\\DirectX\\Microsoft DirectX SDK (June 2010)", "InstallPath")
|
|
|
if (dir != 0):
|
|
if (dir != 0):
|
|
|
- print("Found DirectX SDK June 2010")
|
|
|
|
|
SDK["DX9"] = dir.replace("\\", "/").rstrip("/")
|
|
SDK["DX9"] = dir.replace("\\", "/").rstrip("/")
|
|
|
SDK["GENERIC_DXERR_LIBRARY"] = 1;
|
|
SDK["GENERIC_DXERR_LIBRARY"] = 1;
|
|
|
if ("DX9" not in SDK):
|
|
if ("DX9" not in SDK):
|
|
|
dir = GetRegistryKey("SOFTWARE\\Microsoft\\DirectX\\Microsoft DirectX SDK (June 2010)", "InstallPath")
|
|
dir = GetRegistryKey("SOFTWARE\\Microsoft\\DirectX\\Microsoft DirectX SDK (June 2010)", "InstallPath")
|
|
|
if (dir != 0):
|
|
if (dir != 0):
|
|
|
- print("Found DirectX SDK June 2010")
|
|
|
|
|
SDK["DX9"] = dir.replace("\\", "/").rstrip("/")
|
|
SDK["DX9"] = dir.replace("\\", "/").rstrip("/")
|
|
|
SDK["GENERIC_DXERR_LIBRARY"] = 1;
|
|
SDK["GENERIC_DXERR_LIBRARY"] = 1;
|
|
|
|
|
+ if ("DX9" not in SDK):
|
|
|
|
|
+ dir = "C:/Program Files (x86)/Microsoft DirectX SDK (June 2010)"
|
|
|
|
|
+ if os.path.isdir(dir):
|
|
|
|
|
+ SDK["DX9"] = dir
|
|
|
|
|
+ SDK["GENERIC_DXERR_LIBRARY"] = 1
|
|
|
|
|
+ if ("DX9" not in SDK):
|
|
|
|
|
+ dir = "C:/Program Files/Microsoft DirectX SDK (June 2010)"
|
|
|
|
|
+ if os.path.isdir(dir):
|
|
|
|
|
+ SDK["DX9"] = dir
|
|
|
|
|
+ SDK["GENERIC_DXERR_LIBRARY"] = 1
|
|
|
if ("DX9" not in SDK):
|
|
if ("DX9" not in SDK):
|
|
|
exit("Couldn't find DirectX June2010 SDK")
|
|
exit("Couldn't find DirectX June2010 SDK")
|
|
|
|
|
+ else:
|
|
|
|
|
+ print("Found DirectX SDK June 2010")
|
|
|
elif strMode == 'aug2009':
|
|
elif strMode == 'aug2009':
|
|
|
if ("DX9" not in SDK):
|
|
if ("DX9" not in SDK):
|
|
|
dir = GetRegistryKey("SOFTWARE\\Wow6432Node\\Microsoft\\DirectX\\Microsoft DirectX SDK (August 2009)", "InstallPath")
|
|
dir = GetRegistryKey("SOFTWARE\\Wow6432Node\\Microsoft\\DirectX\\Microsoft DirectX SDK (August 2009)", "InstallPath")
|