diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2013-11-01 22:26:01 +0400 |
---|---|---|
committer | Underground78 <underground78@users.sourceforge.net> | 2013-11-05 02:59:25 +0400 |
commit | 3f8da866ca6798ae85d26870fb627b5188c695f6 (patch) | |
tree | 023d8f0adab8f9522328d5082993fcba2d1dc6b7 /build.bat | |
parent | 5b82de83d5d40fc5bbcdb47c1a9bc99677daeccd (diff) |
build.bat: Add error checking when extracting the DX cab files.
Also allow `EXPAND` to show info when doing its job.
Diffstat (limited to 'build.bat')
-rw-r--r-- | build.bat | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -320,8 +320,10 @@ EXIT /B :SubCopyDXDll
IF /I "%BUILDCFG%" == "Debug" EXIT /B
PUSHD "%BIN_DIR%"
-EXPAND "%DXSDK_DIR%\Redist\Jun2010_D3DCompiler_43_%~1.cab" -F:D3DCompiler_43.dll mpc-hc_%~1 >NUL
-EXPAND "%DXSDK_DIR%\Redist\Jun2010_d3dx9_43_%~1.cab" -F:d3dx9_43.dll mpc-hc_%~1 >NUL
+EXPAND "%DXSDK_DIR%\Redist\Jun2010_D3DCompiler_43_%~1.cab" -F:D3DCompiler_43.dll mpc-hc_%~1
+IF %ERRORLEVEL% NEQ 0 CALL :SubMsg "ERROR" "Problem when extracting %DXSDK_DIR%\Redist\Jun2010_D3DCompiler_43_%~1.cab" & EXIT /B
+EXPAND "%DXSDK_DIR%\Redist\Jun2010_d3dx9_43_%~1.cab" -F:d3dx9_43.dll mpc-hc_%~1
+IF %ERRORLEVEL% NEQ 0 CALL :SubMsg "ERROR" "Problem when extracting Jun2010_d3dx9_43_%~1.cab" & EXIT /B
POPD
EXIT /B
|