1+ echo "Hi, this is my first real script\nwhich will dump the roms from Ultimate nes remix"
2+ if not ask "Do you want to continue?"
3+ goto end
4+ end
5+
6+ if not find -o -s "C:/*trim.3ds" CARTRIDGE
7+ echo "Where is your 3ds cart?"
8+ goto end
9+ end
10+
11+ imgmount $[CARTRIDGE]
12+
13+ if not cp G:/content0.game/romfs/emu/rom 0:/gm9/out/UNR
14+ echo "Failed to copy"
15+ imgumount
16+ goto end
17+ end
18+
19+ imgumount
20+ echo "done"
21+ if not ask "Do you want to fix their header?"
22+ goto end
23+ end
24+ set UNR 0:/gm9/out/UNR
25+ goto BALLOON_FIGHT
26+
27+ @BALLOON_FIGHT
28+ if not fset $[UNR]/BALLOON 4E45531A01010000
29+ goto error
30+ end
31+ mv $[UNR]/BALLOON $[UNR]/Balloonfight.nes
32+ goto EXCITEBIKE
33+
34+ @EXCITEBIKE
35+ if not fset $[UNR]/BIKE 4E45531A01010100
36+ goto error
37+ end
38+ mv $[UNR]/BIKE $[UNR]/Excitebike.nes
39+ goto DK1
40+
41+ @DK1
42+ if not fset $[UNR]/DK1 4E45531A01010000
43+ goto error
44+ end
45+ mv $[UNR]/DK1 $[UNR]/DonkeyKong.nes
46+ goto DK2
47+
48+ @DK2
49+ if not fset $[UNR]/DK2 4E45531A01010100
50+ goto error
51+ end
52+ mv $[UNR]/DK2 $[UNR]/DonkeyKongJr.nes
53+ goto DOCTOR
54+
55+ @DOCTOR
56+ if not fset $[UNR]/DOCTOR 4E45531A02041000
57+ goto error
58+ end
59+ mv $[UNR]/DOCTOR $[UNR]/DrMario.nes
60+ goto UsIKARUS
61+
62+ @UsIKARUS
63+ if not fset $[UNR]/UsIKARUS 4E45531A08001100
64+ goto error
65+ end
66+ mv $[UNR]/UsIKARUS $[UNR]/KidIcarusUS.nes
67+ goto KIRBY
68+
69+ @KIRBY
70+ if not fset $[UNR]/KIRBY 4E45531A20204200
71+ goto error
72+ end
73+ mv $[UNR]/KIRBY $[UNR]/KirbyJP.nes
74+ goto UsKIRBY
75+
76+ @UsKIRBY
77+ if not fset $[UNR]/UsKIRBY 4E45531A20204200
78+ goto error
79+ end
80+ mv $[UNR]/UsKIRBY $[UNR]/KirbyUS.nes
81+ goto MB
82+
83+ @MB
84+ if not fset $[UNR]/MB 4E45531A01010000
85+ goto error
86+ end
87+ mv $[UNR]/MB $[UNR]/MarioBros.nes
88+ goto PUNCH
89+
90+ @PUNCH
91+ if not fset $[UNR]/PUNCH 4E45531A00109000
92+ goto error
93+ end
94+ mv $[UNR]/PUNCH $[UNR]/PunchOut.nes
95+ goto SMB1
96+
97+ @SMB1
98+ if not fset $[UNR]/SMB1 4E45531A02010100
99+ goto error
100+ end
101+ mv $[UNR]/SMB1 $[UNR]/SuperMarioBros.nes
102+ goto SMB3
103+
104+ @SMB3
105+ if not fset $[UNR]/SMB3 4E45531A10104000
106+ goto error
107+ end
108+ mv $[UNR]/SMB3 $[UNR]/SuperMarioBros3JP.nes
109+ goto UsSMB3
110+
111+ @UsSMB3
112+ if not fset $[UNR]/UsSMB3 4E45531A10104000
113+ goto error
114+ end
115+ mv $[UNR]/UsSMB3 $[UNR]/SuperMarioBros3USA.nes
116+ goto SMBUSA
117+
118+ @SMBUSA
119+ if not fset $[UNR]/SMBUSA 4E45531A00104000
120+ goto error
121+ end
122+ mv $[UNR]/SMBUSA $[UNR]/SuperMarioBrosUSA.nes
123+ goto UsSMBUSA
124+
125+ @UsSMBUSA
126+ if not fset $[UNR]/UsSMBUSA 4E45531A00104000
127+ goto error
128+ end
129+ mv $[UNR]/UsSMBUSA $[UNR]/SuperMarioBros2.nes
130+ goto UsMETROID
131+
132+ @UsMETROID
133+ if not fset $[UNR]/UsMETROID 4E45531A08001000
134+ goto error
135+ end
136+ mv $[UNR]/UsMETROID $[UNR]/MetroidUSA.nes
137+ goto ZELDA
138+
139+ @ZELDA
140+ if not fset $[UNR]/ZELDA 4E45531A08001200
141+ goto error
142+ end
143+ mv $[UNR]/ZELDA $[UNR]/LegendOfZeldaJP.nes
144+ goto UsZELDA
145+
146+ @UsZELDA
147+ if not fset $[UNR]/UsZELDA 4E45531A08001200
148+ goto error
149+ end
150+ mv $[UNR]/UsZELDA $[UNR]/LegendOfZeldaUSA.nes
151+ goto UsZELDA2
152+
153+ @UsZELDA2
154+ if not fset $[UNR]/UsZELDA2 4E45531A08191200
155+ goto error
156+ end
157+ mv $[UNR]/UsZELDA2 $[UNR]/LegendOfZelda2USA.nes
158+ goto uselessDel
159+
160+ @uselessDel
161+ if ask "Do you want to delete\nuseless files and roms that cannot be fixed?\nThis includes FDS roms and patches that were included \nwith the roms."
162+ rm $[UNR]/KIRBY.patch
163+ rm $[UNR]/METROID.patch
164+ rm $[UNR]/UsKIRBY.patch
165+ rm $[UNR]/ZELDA2.patch
166+ goto fdsdel
167+ end
168+ if ask "Do you only want to delete FDS roms?"
169+ goto fdsdel
170+ end
171+ if ask "Do you only want to delete the patches?"
172+ goto patchdel
173+ end
174+ goto end
175+
176+ @fdsdel
177+ rm $[UNR]/ICARUS
178+ rm $[UNR]/METROID
179+ rm $[UNR]/SMB2
180+ rm $[UNR]/ZELDA2
181+ goto end
182+
183+ @patchdel
184+ rm $[UNR]/KIRBY.patch
185+ rm $[UNR]/METROID.patch
186+ rm $[UNR]/UsKIRBY.patch
187+ rm $[UNR]/ZELDA2.patch
188+ goto end
189+
190+ @error
191+ echo "Something went wrong with your roms"
192+ goto end
193+
194+ @end
195+ echo "Thanks for testing :)"
196+ echo "Thanks to validusername16\naspargas2\win9x\nfor helping me making this script"
197+ qr "here's my Github repo on tutorials \nfor the Nintendo 3DS" "https://github.com/GlaZedBelmont/3DS-Tutorials"
0 commit comments