Browse Source

Made PlatformSDK detection a tiny bit smarter

rdb 17 years ago
parent
commit
a7da251e2d
1 changed files with 3 additions and 0 deletions
  1. 3 0
      doc/makepanda/makepandacore.py

+ 3 - 0
doc/makepanda/makepandacore.py

@@ -717,6 +717,9 @@ def SdkLocateMSPlatform():
     if (platsdk == 0):
     if (platsdk == 0):
         platsdk=GetRegistryKey("SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v6.1","InstallationFolder")
         platsdk=GetRegistryKey("SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v6.1","InstallationFolder")
 		
 		
+    if (platsdk == 0 and os.path.isdir("C:\\Program Files\\Microsoft Visual Studio 8\\VC\\PlatformSDK")):
+		    platsdk = "C:\\Program Files\\Microsoft Visual Studio 8\\VC\\PlatformSDK\\"
+		
     if (platsdk != 0):
     if (platsdk != 0):
         SDK["MSPLATFORM"] = platsdk
         SDK["MSPLATFORM"] = platsdk