Mercurial > codedump
comparison mmltonsf.bat @ 9:002a5dbce627
Add mmltonsf.bat
committer: GitHub <noreply@github.com>
| author | Paper <37962225+mrpapersonic@users.noreply.github.com> |
|---|---|
| date | Wed, 24 Mar 2021 19:57:28 -0400 |
| parents | |
| children | 37f231f85a67 |
comparison
equal
deleted
inserted
replaced
| 8:b3d9104ad918 | 9:002a5dbce627 |
|---|---|
| 1 @echo off | |
| 2 | |
| 3 if "%1" == "" ( | |
| 4 echo usage: compile.bat ^<input^> | |
| 5 exit /b | |
| 6 ) | |
| 7 | |
| 8 REM - Compile MML | |
| 9 del /f effect.h | |
| 10 ppmckc.exe -i "%1" | |
| 11 if not exist "effect.h" ( | |
| 12 echo ppmckc ERROR | |
| 13 exit /b | |
| 14 ) | |
| 15 | |
| 16 REM - Assemble | |
| 17 del /f ppmck.nes | |
| 18 nesasm -s -raw ppmck.asm | |
| 19 if not exist "ppmck.nes" ( | |
| 20 echo nesasm ERROR | |
| 21 del /f "%~n1" effect.h define.inc | |
| 22 exit /b | |
| 23 ) | |
| 24 | |
| 25 REM - Move files and such | |
| 26 move /y ppmck.nes "%~n1.nsf" | |
| 27 echo %~n1.nsf written | |
| 28 | |
| 29 REM - Cleanup | |
| 30 del /f "%~n1".h effect.h define.inc |
