Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@users.sourceforge.net>2013-11-01 22:26:01 +0400
committerUnderground78 <underground78@users.sourceforge.net>2013-11-05 02:59:25 +0400
commit3f8da866ca6798ae85d26870fb627b5188c695f6 (patch)
tree023d8f0adab8f9522328d5082993fcba2d1dc6b7 /build.bat
parent5b82de83d5d40fc5bbcdb47c1a9bc99677daeccd (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.bat6
1 files changed, 4 insertions, 2 deletions
diff --git a/build.bat b/build.bat
index 863f8a6f1..4270f4b98 100644
--- a/build.bat
+++ b/build.bat
@@ -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