-
Notifications
You must be signed in to change notification settings - Fork 0
/
compile.bat
57 lines (54 loc) · 1.93 KB
/
compile.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
@echo off
mkdir "7zfile/flashcardsdroot (all)/_nds"
mkdir "7zfile/sdroot/3ds/TWLoader"
mkdir "7zfile/sdroot/3ds/TWLoader_demo"
mkdir "7zfile/sdroot/_nds/twloader/loadflashcard"
mkdir "7zfile/sdroot/_nds/twloader/cia"
cd "TWLoader-update/prebuilts"
copy "ace_rpg.nds" "../../7zfile/sdroot/_nds/twloader/loadflashcard/ace_rpg.nds"
copy "r4.nds" "../../7zfile/sdroot/_nds/twloader/loadflashcard/r4.nds"
copy "loadcard_dstt.nds" "../../7zfile/sdroot/_nds/loadcard_dstt.nds"
copy "GBARunner2.nds" "../../7zfile/sdroot/_nds/GBARunner2.nds"
copy "GBARunner2_flashcard.nds" "../../7zfile/flashcardsdroot (all)/GBARunner2.nds"
cd ..
copy "unofficial-bootstrap.nds" "../7zfile/sdroot/_nds/unofficial-bootstrap.nds"
copy "release-bootstrap.nds" "../7zfile/sdroot/_nds/release-bootstrap.nds"
cd ..
cd "twlnand-stage1"
make clean
make
python patch_ndsheader_dsiware.py Stage1.nds --mode dsi --maker 01 --code TWLD --title "TWLOADER-TWL" --out Stage1-DSiWare.nds
make_cia --srl="Stage1-DSiWare.nds"
copy "Stage1-DSiWare.cia" "../7zfile/sdroot/_nds/twloader/cia/TWLoader - TWLNAND side.cia"
cd ..
cd "twlnand-stage2"
make clean
make
copy "Stage2.nds" "../7zfile/sdroot/_nds/twloader/TWLD.twldr"
cd ..
cd NTR_Launcher
make clean
make
copy "NTR_Launcher.nds" "../7zfile/sdroot/_nds/twloader/NTR_Launcher.nds"
cd ..
cd gui
make clean
make -j8 COMPILE_3DSX=0
copy "TWLoader.cia" "../7zfile/sdroot/_nds/twloader/cia/TWLoader.cia"
copy "TWLoader.3dsx" "../7zfile/sdroot/3ds/TWLoader/TWLoader.3dsx"
copy "TWLoader.smdh" "../7zfile/sdroot/3ds/TWLoader/TWLoader.smdh"
make clean
make -j8 COMPILE_3DSX=1 3dsx
copy "TWLoader.3dsx" "../7zfile/sdroot/3ds/TWLoader_demo/TWLoader_demo.3dsx"
copy "TWLoader.smdh" "../7zfile/sdroot/3ds/TWLoader/TWLoader_demo.smdh"
cd ..
cd flashcard-side
make clean
make
copy "flashcard-side.nds" "../7zfile/flashcardsdroot (all)/_nds/twloader.nds"
cd ..
cd flashcard-softreset
make clean
make
copy "flashcard-softreset.nds" "../7zfile/flashcardsdroot (all)/SR.TWLDR"
pause