Skip to content

Commit

Permalink
Merge pull request #12 from Ds886/fix-error-batch
Browse files Browse the repository at this point in the history
Improves batch script to give better error if no paramter provided
  • Loading branch information
gymzatan authored Dec 5, 2021
2 parents 7f821a0 + 74f84a4 commit 395d009
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions SMT1_create.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,24 @@
SET orig=%1
SET ios=%2

IF NOT DEFINED orig (
ECHO GBA rom not provide
CALL :printInstruction
EXIT /B
)

IF NOT DEFINED ios (
ECHO iOS rom not provide
CALL :printInstruction
EXIT /B
)

ECHO Recived values:
ECHO Orginal GBA ROM: %orig%
ECHO Orginal iOS ROM: %ios%



ECHO Testing accessibility to Original file
IF NOT EXIST %orig% (
ECHO File not found
Expand Down
2 changes: 1 addition & 1 deletion SMT1_create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ then
then
echo 'Downloading multiPatch'
downloadedZip='./bin/multiPatch.zip'
curl 'https://projects.sappharad.com/tools/multiPatch171_cmd.zip' -o $downloadedZip
curl -L 'https://github.com/Sappharad/MultiPatch/releases/download/2.0/multipatch20_cmd.zip' -o $downloadedZip

echo "Decompressing multiPatch"
unzip $downloadedZip -d "bin/"
Expand Down

0 comments on commit 395d009

Please sign in to comment.