# HG changeset patch # User Paper <37962225+mrpapersonic@users.noreply.github.com> # Date 1663850017 14400 # Node ID 2e115eb60be89c6e8c2a114eed3fd9bbc38a7c10 # Parent 1cc4f545a26006246232341882c3fee40b9dc446 god.bat: does the file even exist? committer: GitHub diff -r 1cc4f545a260 -r 2e115eb60be8 god.bat --- a/god.bat Thu Sep 22 00:01:37 2022 -0400 +++ b/god.bat Thu Sep 22 08:33:37 2022 -0400 @@ -22,6 +22,15 @@ setlocal EnableDelayedExpansion call :argparser %* if %count% LSS 3 goto usage +if not exist "%inputmp4%" ( + call :error "Input MP4 file doesn't exist!" + goto usage +) +if not exist "%inputwav%" ( + call :error "Input WAV file doesn't exist!" + goto usage +) +if exist "%outputmp4%" call :warning "Output MP4 file already exists!" REM mp4 barely supports flac, matroska ftw REM REM vegas pro sucks and has barely any support @@ -100,4 +109,4 @@ :info echo [INFO]: %~1 -exit /b 0 \ No newline at end of file +exit /b 0