mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-12-01 01:27:20 +01:00
vrts: allow CLI flags
This commit is contained in:
parent
479e6b8889
commit
9ba873d773
@ -60,14 +60,20 @@ set C_W=0e
|
|||||||
set C_E=0c
|
set C_E=0c
|
||||||
set C_O=0f
|
set C_O=0f
|
||||||
|
|
||||||
|
REM # remove command options and possibly "
|
||||||
|
for /f "tokens=1-1 delims= " %%A in ("%OP_CMD_OLD%") do set CHECK_OLD=%%A
|
||||||
|
for /f "tokens=1-1 delims= " %%A in ("%OP_CMD_NEW%") do set CHECK_NEW=%%A
|
||||||
|
set CHECK_OLD=%CHECK_OLD:"=%
|
||||||
|
set CHECK_NEW=%CHECK_NEW:"=%
|
||||||
|
|
||||||
REM # check exe
|
REM # check exe
|
||||||
set CMD_CHECK=where "%OP_CMD_OLD%" "%OP_CMD_NEW%"
|
set CMD_CHECK=where "%CHECK_OLD%" "%CHECK_NEW%"
|
||||||
%CMD_CHECK% > nul
|
%CMD_CHECK% > nul
|
||||||
if %ERRORLEVEL% NEQ 0 (
|
if %ERRORLEVEL% NEQ 0 (
|
||||||
echo Old/new exe not found
|
echo Old/new exe not found
|
||||||
goto error
|
goto error
|
||||||
)
|
)
|
||||||
|
|
||||||
if %OP_SEARCH%=="" (
|
if %OP_SEARCH%=="" (
|
||||||
echo Search wildcard not specified
|
echo Search wildcard not specified
|
||||||
goto error
|
goto error
|
||||||
|
Loading…
Reference in New Issue
Block a user