Skip to content

Commit ede0f61

Browse files
Naim2000lifehackerhansol
authored andcommitted
Read assets from romfs directly
1 parent e5d98b6 commit ede0f61

File tree

2 files changed

+95
-67
lines changed

2 files changed

+95
-67
lines changed

finalize_helper.gm9

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,12 @@ if not sha 0:/finalize.romfs FINALIZE_SHA256SUM
8282
poweroff
8383
else
8484
imgmount 0:/finalize.romfs
85-
if not find 0:/finalize NULL
86-
mkdir 0:/finalize
87-
end
88-
cp -w -o -s G:/finalize 0:/finalize
89-
cp -w -o -s 0:/finalize/GodMode9.firm 0:/luma/payloads/GodMode9.firm
85+
cp -w -o -s G:/finalize/GodMode9.firm 0:/luma/payloads/GodMode9.firm
9086
if not find 0:/gm9/scripts NULL
9187
mkdir 0:/gm9/scripts
9288
end
93-
cp -w -o -s 0:/finalize/finalize.gm9 0:/gm9/scripts/finalize.gm9
94-
rm -o -s 0:/finalize.romfs
89+
cp -w -o -s G:/finalize/finalize.gm9 0:/gm9/scripts/finalize.gm9
90+
imgumount
9591
end
9692

9793
if not boot 0:/luma/payloads/GodMode9.firm

romfs/finalize/finalize.gm9

Lines changed: 92 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,38 @@ rm -o -s 0:/luma/payloads/*_finalize_helper.firm
99

1010
set PREVIEW_MODE "> Checking for problems...\nAsking for permission... ---\nInstalling homebrew... ---\nCopying GodMode9 to CTRNAND... ---\nCleaning up SD card... ---\nBacking up essential.exefs... ---\nBacking up NAND... ---"
1111

12+
# First order of business - Grab a hold of finalize.romfs
13+
if not find G:/finalize/finalize.gm9 NULL
14+
if not find 0:/finalize.romfs ROMFS
15+
set PREVIEW_MODE "> Checking for problems... :(\nAsking for permission... ---\nInstalling homebrew... ---\nCopying GodMode9 to CTRNAND... ---\nCleaning up SD card... ---\nBacking up essential.exefs... ---\nBacking up NAND... ---"
16+
echo "Error #21: finalize.romfs not found\n \nfinalize.romfs could not be found on the SD card.\nCopy it to root of SD and try again."
17+
poweroff
18+
end
19+
20+
if not shaget $[ROMFS] ROMFS_SHA256
21+
set PREVIEW_MODE "> Checking for problems... :(\nAsking for permission... ---\nInstalling homebrew... ---\nCopying GodMode9 to CTRNAND... ---\nCleaning up SD card... ---\nBacking up essential.exefs... ---\nBacking up NAND... ---"
22+
echo "Error #22: finalize.romfs is unreadable\n \nCould not read finalize.romfs.\n(How did this happen..? Did it get corrupt?)\n\nCopy finalize.romfs to your SD card and try again."
23+
poweroff
24+
end
25+
26+
if not imgmount $[ROMFS]
27+
set PREVIEW_MODE "> Checking for problems... :(\nAsking for permission... ---\nInstalling homebrew... ---\nCopying GodMode9 to CTRNAND... ---\nCleaning up SD card... ---\nBacking up essential.exefs... ---\nBacking up NAND... ---"
28+
echo "Error #22: Failed to mount finalize.romfs\n\nCould not mount finalize.romfs.\n(How did this happen..? Did it get corrupt?)\n\nCopy finalize.romfs to your SD card and try again."
29+
poweroff
30+
end
31+
end
32+
33+
# Copy finalize files to RAMDRIVE
34+
if not cp -w -s G:/finalize 9:/finalize
35+
# WHAT????
36+
set PREVIEW_MODE "> Checking for problems... :(\nAsking for permission... ---\nInstalling homebrew... ---\nCopying GodMode9 to CTRNAND... ---\nCleaning up SD card... ---\nBacking up essential.exefs... ---\nBacking up NAND... ---"
37+
echo "Error #22: finalize.romfs is unreadable\n \nCould not copy files from finalize.romfs.\n(How did this happen..? Did it get corrupt?)\n\nCopy finalize.romfs to your SD card and try again."
38+
poweroff
39+
end
40+
41+
# We're done with finalize.romfs now
42+
imgumount
43+
1244
# Check for missing essentials
1345
# BuildEssentialBackup() will return 1 (failure) if any of these files are missing. As well as nand_hdr.bin, but like lol
1446

@@ -36,11 +68,11 @@ end
3668

3769
if not find S:/essential.exefs NULL
3870
if chk -u $[MISSINGESSENTIAL] ""
39-
set PREVIEW_MODE "0:/finalize/img/error30.png"
71+
set PREVIEW_MODE "9:/finalize/img/error30.png"
4072
echo "Fatal Error #30: Missing console-unique files\n \nThe following files are missing from the NAND:\n$[MISSINGESSENTIAL]\n \nAsk for help on Discord:\nhttps://discord.gg/MWxPgEp"
4173
poweroff
4274
else
43-
set PREVIEW_MODE "0:/finalize/img/error02.png"
75+
set PREVIEW_MODE "9:/finalize/img/error02.png"
4476
echo "Error #02: Missing essential.exefs\n \nessential.exefs does not exist.\nClose and re-open GodMode9,\nmaking sure to say Yes to the\n'Create essential files' popup."
4577
poweroff
4678
end
@@ -66,7 +98,7 @@ end
6698
# We don't. Why not?
6799

68100
if not shaget $[SEED]@110:10 NULL # This should end up failing normally if SEED is "". I'd hope. Someone test this.
69-
set PREVIEW_MODE "0:/finalize/img/error31.png"
101+
set PREVIEW_MODE "9:/finalize/img/error31.png"
70102
echo "Fatal Error #31: Missing encryption key\n \nThe system is missing movable.sed from NAND.\n(How did this happen...?)\n \nAsk for help on Discord:\nhttps://discord.gg/MWxPgEp"
71103
# At this stage, we have essential.exefs.
72104
# I could copy it. But how do we know that this isn't like, a failed/cancelled Manual Movable Moveover? The user might have been doing something.
@@ -76,30 +108,30 @@ end
76108
# Okay, we have an ID0. Is it there?
77109

78110
if not find "0:/Nintendo 3DS/$[SYSID0]" SYSID0PATH
79-
if find 0:/finalize/nospace NULL
111+
if find 0:/gm9/flags/nospace NULL
80112
goto NOSPACE
81113
end
82114

83-
set PREVIEW_MODE "0:/finalize/img/error33.png"
115+
set PREVIEW_MODE "9:/finalize/img/error33.png"
84116
echo "Information #33: Empty Nintendo 3DS folder\n \nThe Nintendo 3DS folder has no data for this console.\nTurn on your console with the SD inserted,\nallow it to reach the HOME Menu, then run\nthis script again."
85117
reboot
86118
end
87119

88120
# Check for and attempt to fix edited MSET9 ID1
89121

90122
if find "$[SYSID0PATH]/????????????????????????????????_user-id1" CURRENT
91-
set PREVIEW_MODE "0:/finalize/img/error18a.png"
123+
set PREVIEW_MODE "9:/finalize/img/error18a.png"
92124
echo "Error #18a: MSET9 detected\n \nID1 still affected by MSET9.\nAttempting to fix it.\n \nPress (A) to continue, then\nenter the key combo if prompted."
93125
allow "0:/Nintendo 3DS"
94126
strsplit -b REAL $[CURRENT] "_"
95127
if not mv $[CURRENT] $[REAL]
96-
set PREVIEW_MODE "0:/finalize/img/error19a.png"
128+
set PREVIEW_MODE "9:/finalize/img/error19a.png"
97129
echo "Fatal Error #19a: Could not remove MSET9\n \nFailed to rename ID1.\nPlease remove MSET9 manually.\nIf you continue to see this prompt,\nask for help on Discord:\nhttps://discord.gg/MWxPgEp"
98130
poweroff
99131
end
100132
if find "$[SYSID0PATH]/*sdmc*b9" MSET9ID1
101133
if not rm -s $[MSET9ID1]
102-
set PREVIEW_MODE "0:/finalize/img/error19b.png"
134+
set PREVIEW_MODE "9:/finalize/img/error19b.png"
103135
echo "Fatal Error #19b: Could not remove MSET9\n \nFailed to remove hax'd ID1.\nPlease remove MSET9 manually.\nIf you continue to see this prompt,\nask for help on Discord:\nhttps://discord.gg/MWxPgEp"
104136
poweroff
105137
end
@@ -110,11 +142,11 @@ end
110142
# Check for and attempt to delete hax'd MSET9
111143

112144
if find "$[SYSID0PATH]/*sdmc*b9" MSET9ID1
113-
set PREVIEW_MODE "0:/finalize/img/error18b.png"
145+
set PREVIEW_MODE "9:/finalize/img/error18b.png"
114146
echo "Error #18b: MSET9 detected\n \nMSET9 hax'd ID1 is still present.\n \nAttempting to fix it.\n \nPress (A) to continue, then\nenter the key combo if prompted."
115147
allow "0:/Nintendo 3DS"
116148
if not rm -s $[MSET9ID1]
117-
set PREVIEW_MODE "0:/finalize/img/error19b.png"
149+
set PREVIEW_MODE "9:/finalize/img/error19b.png"
118150
echo "Fatal Error #19b: Could not remove MSET9\n \nFailed to remove hax'd ID1.\nPlease remove MSET9 manually.\nIf you continue to see this prompt,\nask for help on Discord:\nhttps://discord.gg/MWxPgEp"
119151
poweroff
120152
end
@@ -124,14 +156,14 @@ end
124156
# Eject and reinsert SD to mount SYSNAND SD
125157

126158
if chk $[FIXEDMSET9] YES
127-
set PREVIEW_MODE "0:/finalize/img/mset9_reinsert.png"
159+
set PREVIEW_MODE "9:/finalize/img/mset9_reinsert.png"
128160
switchsd "MSET9 has been removed.\n \nEject and reinsert your SD card to continue."
129161
goto IS_SYSNAND_SD_OK
130162
end
131163

132164
# SYSID0 path exists at this point, yet not SYSNAND SD. Why?
133165

134-
set PREVIEW_MODE "0:/finalize/img/error32.png"
166+
set PREVIEW_MODE "9:/finalize/img/error32.png"
135167
echo "Fatal Error #32: Nintendo 3DS folder is inaccessible\n \nCould not access the Nintendo 3DS folder.\n(How did this happen..?)\n \nAsk for help on Discord:\nhttps://discord.gg/MWxPgEp"
136168
poweroff
137169

@@ -144,7 +176,7 @@ if find 0:/gm9/flags/BACKUPFLAG NULL
144176
end
145177

146178
if chk $[SDFREE] INVALID # should not happen
147-
set PREVIEW_MODE "0:/finalize/img/error07.png"
179+
set PREVIEW_MODE "9:/finalize/img/error07.png"
148180
echo "Fatal Error #07: No SD size\n \nCould not get SD card size.\nThis should not happen.\nAsk for help on Discord:\nhttps://discord.gg/MWxPgEp"
149181
else
150182
strsplit -f -b SDFREE_VALUE $[SDFREE] " "
@@ -166,12 +198,15 @@ else
166198
goto SDFREE_NEXT
167199
end
168200
end
169-
fdummy -o -s 0:/finalize/nospace 400
201+
if not find 0:/gm9/flags NULL
202+
mkdir -o -s 0:/gm9/flags
203+
end
204+
fdummy -o -s 0:/gm9/flags/nospace 400
170205
if chk $[ONTYPE] O3DS
171-
set PREVIEW_MODE "0:/finalize/img/error04.png"
206+
set PREVIEW_MODE "9:/finalize/img/error04.png"
172207
echo "Error #04: No space\n \nInsufficient space on SD card.\nYou need 1.0GB, but you have $[SDFREE].\nMake some space, then try again.\n \nTIP: You can temporarily remove the Nintendo 3DS\nand DCIM folders from your SD card\nto make enough space."
173208
else
174-
set PREVIEW_MODE "0:/finalize/img/error04.png"
209+
set PREVIEW_MODE "9:/finalize/img/error04.png"
175210
echo "Error #04: No space\n \nInsufficient space on SD card.\nYou need 1.4GB, but you have $[SDFREE].\nMake some space, then try again.\n \nTIP: You can temporarily remove the Nintendo 3DS\nand DCIM folders from your SD card\nto make enough space."
176211
end
177212
end
@@ -191,13 +226,13 @@ end
191226
# Check for title database
192227

193228
if not find A:/dbs/title.db NULL
194-
set PREVIEW_MODE "0:/finalize/img/error05.png"
229+
set PREVIEW_MODE "9:/finalize/img/error05.png"
195230
ask "Information #05: No title database\n \nTitle database not found.\nPress (A) to automatically import one.\n(A title database is necessary\nfor this script to run.)"
196231
goto IMPORT
197232
end
198233

199234
if not imgmount A:/dbs/title.db
200-
set PREVIEW_MODE "0:/finalize/img/error16.png"
235+
set PREVIEW_MODE "9:/finalize/img/error16.png"
201236
if ask "Error #16: Title database mount fail\n \nTitle database exists, but could not\nbe accessed.\n \nAttempt donor import?\n(If you have anything installed on\nthis console, this may result in\ninstalled digital games being rendered\n INACCESSIBLE!)"
202237
goto IMPORT
203238
else
@@ -211,26 +246,26 @@ goto MAIN
211246

212247
mkdir -o -s A:/dbs
213248

214-
if not cp -w -o -s 0:/finalize/donor.db A:/dbs/title.db
215-
set PREVIEW_MODE "0:/finalize/img/error12a.png"
249+
if not cp -w -o -s 9:/finalize/donor.db A:/dbs/title.db
250+
set PREVIEW_MODE "9:/finalize/img/error12a.png"
216251
echo "Error #12a: Copy title.db fail\n \nTitle database could not be copied to A:/dbs.\n(Is your SD card locked?)\n \nAsk for help on Discord:\nhttps://discord.gg/MWxPgEp"
217252
poweroff
218253
end
219254

220-
if not cp -w -o -s 0:/finalize/donor.db A:/dbs/import.db
221-
set PREVIEW_MODE "0:/finalize/img/error12b.png"
255+
if not cp -w -o -s 9:/finalize/donor.db A:/dbs/import.db
256+
set PREVIEW_MODE "9:/finalize/img/error12b.png"
222257
echo "Error #12b: Copy import.db fail\n \nTitle database could not be copied to A:/dbs.\n(Is your SD card locked?)\n \nAsk for help on Discord:\nhttps://discord.gg/MWxPgEp"
223258
poweroff
224259
end
225260

226261
if not fixcmac A:/dbs/title.db
227-
set PREVIEW_MODE "0:/finalize/img/error13a.png"
262+
set PREVIEW_MODE "9:/finalize/img/error13a.png"
228263
echo "Fatal Error #13a: Fix CMAC fail\n \nCMACs could not be fixed for title database.\n(How did this happen?)\n \nAsk for help on Discord:\nhttps://discord.gg/MWxPgEp"
229264
poweroff
230265
end
231266

232267
if not fixcmac A:/dbs/import.db
233-
set PREVIEW_MODE "0:/finalize/img/error13b.png"
268+
set PREVIEW_MODE "9:/finalize/img/error13b.png"
234269
echo "Fatal Error #13b: Fix CMAC fail\n \nCMACs could not be fixed for title database.\n(How did this happen?)\n \nAsk for help on Discord:\nhttps://discord.gg/MWxPgEp"
235270
poweroff
236271
end
@@ -249,44 +284,41 @@ allow 1:
249284
set PREVIEW_MODE "Checking for problems... DONE\nAsking for permission... DONE\n> Installing homebrew...\nCopying GodMode9 to CTRNAND... ---\nCleaning up SD card... ---\nBacking up essential.exefs... ---\nBacking up NAND... ---"
250285

251286
# Install base homebrew applications
287+
# Can't be issues with the copy anymore...
252288

253-
if not install 0:/finalize/Anemone3DS.cia
254-
if not find 0:/finalize/img/error14a.png NULL
255-
echo "Error #14g: CIA install fail\n \nA CIA (Anemone3DS) failed to install.\nAlso, script graphics are missing.\n \nTry re-running finalize_helper, or ask for help\non Discord: https://discord.gg/MWxPgEp"
256-
poweroff
257-
end
258-
set PREVIEW_MODE "0:/finalize/img/error14a.png"
259-
echo "Error #14a: CIA install fail\n \nA CIA (Anemone3DS) failed to install.\n \nTry replacing it with a freshly\ndownloaded copy, or ask for help\non Discord: https://discord.gg/MWxPgEp"
289+
if not install 9:/finalize/Anemone3DS.cia
290+
set PREVIEW_MODE "9:/finalize/img/error14a.png"
291+
echo "Error #14a: CIA install fail\n \nA CIA (Anemone3DS) failed to install.\n \nAsk for help on Discord: https://discord.gg/MWxPgEp"
260292
poweroff
261293
end
262294

263-
if not install 0:/finalize/Checkpoint.cia
264-
set PREVIEW_MODE "0:/finalize/img/error14b.png"
265-
echo "Error #14b: CIA install fail\n \nA CIA (Checkpoint) failed to install.\n \nTry replacing it with a freshly\ndownloaded copy, or ask for help\non Discord: https://discord.gg/MWxPgEp"
295+
if not install 9:/finalize/Checkpoint.cia
296+
set PREVIEW_MODE "9:/finalize/img/error14b.png"
297+
echo "Error #14b: CIA install fail\n \nA CIA (Checkpoint) failed to install.\n \nAsk for help on Discord: https://discord.gg/MWxPgEp"
266298
poweroff
267299
end
268300

269-
if not install 0:/finalize/FBI.cia
270-
set PREVIEW_MODE "0:/finalize/img/error14c.png"
271-
echo "Error #14c: CIA install fail\n \nA CIA (FBI) failed to install.\n \nTry replacing it with a freshly\ndownloaded copy, or ask for help\non Discord: https://discord.gg/MWxPgEp"
301+
if not install 9:/finalize/FBI.cia
302+
set PREVIEW_MODE "9:/finalize/img/error14c.png"
303+
echo "Error #14c: CIA install fail\n \nA CIA (FBI) failed to install.\n \nAsk for help on Discord: https://discord.gg/MWxPgEp"
272304
poweroff
273305
end
274306

275-
if not install 0:/finalize/ftpd.cia
276-
set PREVIEW_MODE "0:/finalize/img/error14d.png"
277-
echo "Error #14d: CIA install fail\n \nA CIA (ftpd) failed to install.\n \nTry replacing it with a freshly\ndownloaded copy, or ask for help\non Discord: https://discord.gg/MWxPgEp"
307+
if not install 9:/finalize/ftpd.cia
308+
set PREVIEW_MODE "9:/finalize/img/error14d.png"
309+
echo "Error #14d: CIA install fail\n \nA CIA (ftpd) failed to install.\n \nAsk for help on Discord: https://discord.gg/MWxPgEp"
278310
poweroff
279311
end
280312

281-
if not install 0:/finalize/Homebrew_Launcher.cia
282-
set PREVIEW_MODE "0:/finalize/img/error14e.png"
283-
echo "Error #14e: CIA install fail\n \nA CIA (Homebrew Launcher) failed to install.\n \nTry replacing it with a freshly\ndownloaded copy, or ask for help\non Discord: https://discord.gg/MWxPgEp"
313+
if not install 9:/finalize/Homebrew_Launcher.cia
314+
set PREVIEW_MODE "9:/finalize/img/error14e.png"
315+
echo "Error #14e: CIA install fail\n \nA CIA (Homebrew Launcher) failed to install.\n \nAsk for help on Discord: https://discord.gg/MWxPgEp"
284316
poweroff
285317
end
286318

287-
if not install 0:/finalize/Universal-Updater.cia
288-
set PREVIEW_MODE "0:/finalize/img/error14f.png"
289-
echo "Error #14f: CIA install fail\n \nA CIA (Universal-Updater) failed to install.\n \nTry replacing it with a freshly\ndownloaded copy, or ask for help\non Discord: https://discord.gg/MWxPgEp"
319+
if not install 9:/finalize/Universal-Updater.cia
320+
set PREVIEW_MODE "9:/finalize/img/error14f.png"
321+
echo "Error #14f: CIA install fail\n \nA CIA (Universal-Updater) failed to install.\n \nAsk for help on Discord: https://discord.gg/MWxPgEp"
290322
poweroff
291323
end
292324

@@ -443,7 +475,7 @@ findnot 0:/gm9/backups/$[DATESTAMP]_$[SERIAL]_sysnand_??.bin OUTPATH
443475

444476
if cp -h S:/nand_minsize.bin $[OUTPATH]
445477
else
446-
set PREVIEW_MODE "0:/finalize/img/error06.png"
478+
set PREVIEW_MODE "9:/finalize/img/error06.png"
447479
echo "Error #06: NAND backup fail\n \nThe NAND backup failed for some reason.\n(Did you cancel it?)\nAsk for help on Discord:\nhttps://discord.gg/MWxPgEp"
448480
poweroff
449481
end
@@ -459,7 +491,7 @@ findnot 0:/gm9/backups/$[DATESTAMP]_$[SERIAL]_sysnand_??.bin OUTPATH
459491

460492
if cp -h S:/nand_minsize.bin $[OUTPATH]
461493
else
462-
set PREVIEW_MODE "0:/finalize/img/error06_nospace.png"
494+
set PREVIEW_MODE "9:/finalize/img/error06_nospace.png"
463495
echo "Error #06: NAND backup fail\n \nThe NAND backup failed for some reason.\n(Do you have enough space?)\nAsk for help on Discord:\nhttps://discord.gg/MWxPgEp"
464496
poweroff
465497
end
@@ -473,12 +505,12 @@ end
473505

474506
set BACKUPFLAG 0:/gm9/flags/BACKUPFLAG
475507
if not fdummy $[BACKUPFLAG] 400
476-
set PREVIEW_MODE "0:/finalize/img/error15.png"
508+
set PREVIEW_MODE "9:/finalize/img/error15.png"
477509
echo "Fatal Error #15: File creation fail\n \nCould not create 0:/gm9/flags/BACKUPFLAG.\n(How did this happen?)\n \nAsk for help on Discord:\nhttps://discord.gg/MWxPgEp"
478510
poweroff
479511
end
480512

481-
set PREVIEW_MODE "0:/finalize/img/emptysd_complete.png"
513+
set PREVIEW_MODE "9:/finalize/img/emptysd_complete.png"
482514
echo "NAND backup complete.\nCopy the two SysNAND files in SD:/gm9/backups\nto a safe location on your computer, then\ndelete them from your SD card.\nThen, copy your Nintendo 3DS folder back\nto your SD card and re-run this script.\n \nIf you don't have a Nintendo 3DS folder backup,\nopen HOME Menu, then re-run this script."
483515
poweroff
484516

@@ -489,53 +521,53 @@ if find 0:/gm9/flags/INSTALLFLAG NULL
489521
goto INSTALLSKIP
490522
end
491523

492-
cp -w 0:/finalize/GM9Megascript.gm9 0:/gm9/scripts/GM9Megascript.gm9
524+
cp -w 9:/finalize/GM9Megascript.gm9 0:/gm9/scripts/GM9Megascript.gm9
493525
rm -o -s 0:/gm9/scripts/finalize.gm9
494526
rm -o -s 0:/finalize.romfs
495527

496-
set PREVIEW_MODE "0:/finalize/img/complete.png"
528+
set PREVIEW_MODE "9:/finalize/img/complete.png"
497529

498530
echo "Success: Setup complete! :D\n \nRemember to backup the contents of\nSD:/gm9/backups to somewhere safe."
499-
rm -o -s 0:/finalize
531+
# rm -o -s 0:/finalize
500532
rm -o -s 0:/gm9/flags
501533

502534
poweroff
503535

504536
@BACKUPSKIP
505537

506-
cp -w 0:/finalize/GM9Megascript.gm9 0:/gm9/scripts/GM9Megascript.gm9
538+
cp -w 9:/finalize/GM9Megascript.gm9 0:/gm9/scripts/GM9Megascript.gm9
507539
rm -o -s 0:/gm9/scripts/finalize.gm9
508540
rm -o -s 0:/finalize.romfs
509541

510-
set PREVIEW_MODE "0:/finalize/img/complete_backupflag.png"
542+
set PREVIEW_MODE "9:/finalize/img/complete_backupflag.png"
511543

512544
if find 0:/gm9/flags/INSTALLFLAG NULL
513545
echo "Success: Setup complete! :D\n \nRemember to backup the contents of\nSD:/gm9/backups to somewhere safe.\n \nWARNING: NAND backup automatically skipped!\nIf you need to make another backup,\nfollow these instructions:\nhttps://tinyurl.com/gm9nandbackup\nWARNING: CIA install skipped by user request!"
514546
else
515547
echo "Success: Setup complete! :D\n \nRemember to backup the contents of\nSD:/gm9/backups to somewhere safe.\n \nWARNING: NAND backup automatically skipped!\nIf you need to make another backup,\nfollow these instructions:\nhttps://tinyurl.com/gm9nandbackup"
516548
end
517549

518-
rm -o -s 0:/finalize
550+
# rm -o -s 0:/finalize
519551
rm -o -s 0:/gm9/flags
520552
poweroff
521553

522554
@BACKUPDUPE
523555

524-
set PREVIEW_MODE "0:/finalize/img/error17.png"
556+
set PREVIEW_MODE "9:/finalize//img/error17.png"
525557

526558
ask "Information #17: Duplicate NAND backup\nIt looks like you've already made a NAND backup.\n \nIf you want to install homebrew applications,\nyou should copy your NAND backup from\nSD:/gm9/backups to a safe location on your computer,\ndelete the backup from the SD card, and\ncopy the Nintendo 3DS folder back to your SD card.\n(If you've lost the folder, you can regenerate\none by opening HOME Menu with this SD inserted.)\n \nPress (A) to make another NAND backup anyway.\nPress (B) to cancel."
527559
goto NOSPACE
528560

529561
@INSTALLSKIP
530562

531-
cp -w 0:/finalize/GM9Megascript.gm9 0:/gm9/scripts/GM9Megascript.gm9
563+
cp -w 9:/finalize/GM9Megascript.gm9 0:/gm9/scripts/GM9Megascript.gm9
532564
rm -o -s 0:/gm9/scripts/finalize.gm9
533565
rm -o -s 0:/finalize.romfs
534566

535-
set PREVIEW_MODE "0:/finalize/img/complete_installflag.png"
567+
set PREVIEW_MODE "9:/finalize/img/complete_installflag.png"
536568

537569
echo "Success: Setup complete! :D\n \nRemember to backup the contents of\nSD:/gm9/backups to somewhere safe.\n \nWARNING: CIA install skipped by user request!"
538-
rm -o -s 0:/finalize
570+
# rm -o -s 0:/finalize
539571
rm -o -s 0:/gm9/flags
540572

541573
poweroff

0 commit comments

Comments
 (0)