Mercurial > codedump
comparison mmltonsf.bat @ 41:37f231f85a67
add tabs to some c++ files and fix win95kg.cpp
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 30 Jun 2021 02:38:59 -0400 |
parents | 002a5dbce627 |
children |
comparison
equal
deleted
inserted
replaced
40:2aa9614cb39a | 41:37f231f85a67 |
---|---|
1 @echo off | 1 @echo off |
2 | 2 |
3 REM - Usage | |
3 if "%1" == "" ( | 4 if "%1" == "" ( |
4 echo usage: compile.bat ^<input^> | 5 echo usage: compile.bat ^<input^> |
5 exit /b | 6 exit /b |
6 ) | 7 ) |
7 | 8 |
8 REM - Compile MML | 9 REM - Compile MML |
9 del /f effect.h | 10 del /f effect.h |
10 ppmckc.exe -i "%1" | 11 ppmckc.exe -i "%1" |
11 if not exist "effect.h" ( | 12 if not exist "effect.h" ( |
12 echo ppmckc ERROR | 13 echo ppmckc ERROR |
13 exit /b | 14 exit /b |
14 ) | 15 ) |
15 | 16 |
16 REM - Assemble | 17 REM - Assemble |
17 del /f ppmck.nes | 18 del /f ppmck.nes |
18 nesasm -s -raw ppmck.asm | 19 nesasm -s -raw ppmck.asm |
19 if not exist "ppmck.nes" ( | 20 if not exist "ppmck.nes" ( |
20 echo nesasm ERROR | 21 echo nesasm ERROR |
21 del /f "%~n1" effect.h define.inc | 22 del /f "%~n1" effect.h define.inc |
22 exit /b | 23 exit /b |
23 ) | 24 ) |
24 | 25 |
25 REM - Move files and such | 26 REM - Move files |
26 move /y ppmck.nes "%~n1.nsf" | 27 move /y ppmck.nes "%~n1.nsf" |
27 echo %~n1.nsf written | 28 echo %~n1.nsf written |
28 | 29 |
29 REM - Cleanup | 30 REM - Cleanup |
30 del /f "%~n1".h effect.h define.inc | 31 del /f "%~n1".h effect.h define.inc |