-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_patches.bat
30 lines (23 loc) · 1.15 KB
/
build_patches.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@echo off
rem Requires Python 3+
echo Building SM Hack Debugging Patch
cd tools
python create_dummies.py 00.sfc ff.sfc
echo Building IPS patches for full version
copy *.sfc ..\build
asar\asar --no-title-check -DFEATURE_DEBUG_MENU=1 -DFEATURE_CRASH_HANDLER=1 -DCRASH_EXTRA_PAGES=1 ..\src\main.asm ..\build\00.sfc
asar\asar --no-title-check ..\src\main.asm ..\build\ff.sfc
python create_ips.py ..\build\00.sfc ..\build\ff.sfc ..\build\Debug_Full.ips
echo Building IPS patches for menu version
copy *.sfc ..\build
asar\asar --no-title-check -DFEATURE_DEBUG_MENU=1 -DFEATURE_CRASH_HANDLER=0 -DCRASH_EXTRA_PAGES=0 ..\src\main.asm ..\build\00.sfc
asar\asar --no-title-check ..\src\main.asm ..\build\ff.sfc
python create_ips.py ..\build\00.sfc ..\build\ff.sfc ..\build\Debug_Menu.ips
echo Building IPS patches for crash-lite version
copy *.sfc ..\build
asar\asar --no-title-check -DFEATURE_DEBUG_MENU=0 -DFEATURE_CRASH_HANDLER=1 -DCRASH_EXTRA_PAGES=0 ..\src\main.asm ..\build\00.sfc
asar\asar --no-title-check ..\src\main.asm ..\build\ff.sfc
python create_ips.py ..\build\00.sfc ..\build\ff.sfc ..\build\Debug_Crash.ips
del 00.sfc ff.sfc ..\build\00.sfc ..\build\ff.sfc
cd ..
PAUSE