diff --git a/Visual Studio Projects/ALTAIR.vcproj b/Visual Studio Projects/ALTAIR.vcproj index 867eba94..48368a9a 100644 --- a/Visual Studio Projects/ALTAIR.vcproj +++ b/Visual Studio Projects/ALTAIR.vcproj @@ -27,7 +27,7 @@ NUL +if not ERRORLEVEL 1 goto _done_xp_check +echo ********************************************************* +echo ********************************************************* +echo ** The %~n1.exe binary can't run on windows XP. ** +echo ** Adding Windows XP suppport to the %~n1 project file** +echo ********************************************************* +echo ********************************************************* + +echo Set objFSO = CreateObject("Scripting.FileSystemObject") >>%1.fix.vbs +echo Set objFile = objFSO.OpenTextFile(Wscript.Arguments(0), 1) >>%1.fix.vbs +echo. >>%1.fix.vbs +echo strText = objFile.ReadAll >>%1.fix.vbs +echo objFile.Close >>%1.fix.vbs +echo strNewText = Replace(strText, "", "_xp") >>%1.fix.vbs +echo. >>%1.fix.vbs +echo Set objFile = objFSO.OpenTextFile(Wscript.Arguments(0), 2) >>%1.fix.vbs +echo objFile.Write strNewText >>%1.fix.vbs +echo objFile.Close >>%1.fix.vbs +cscript %1.fix.vbs %1 +del %1.fix.vbs +:_done_xp_check +shift + :_next_arg if "%1" == "" goto _done_args set _arg= diff --git a/Visual Studio Projects/S3.vcproj b/Visual Studio Projects/S3.vcproj index 25f56fd7..3e3b7661 100644 --- a/Visual Studio Projects/S3.vcproj +++ b/Visual Studio Projects/S3.vcproj @@ -27,7 +27,7 @@