Skip to content

Commit 8425751

Browse files
committed
gm9megascript: remove uninstall hax
1 parent c37c3b4 commit 8425751

File tree

1 file changed

+0
-94
lines changed

1 file changed

+0
-94
lines changed

romfs/finalize/GM9Megascript.gm9

Lines changed: 0 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -409,100 +409,6 @@ else
409409
end
410410
goto Hax_Options_Install_Boot9Strap
411411

412-
###################Hax Uninstall##################
413-
414-
@Hax_Options_Un-install_Hax
415-
set PREVIEW_MODE "GODMODE9 ALL-IN-ONE MEGASCRIPT\nby annson24\n \nHax Options\n>Hax Un-install"
416-
417-
if not ask "!!WARNING!!\nThis will completely remove CFW and\nrevert your system to stock.\n \nProceed anyway?"
418-
goto MainMenu_Hax_Options
419-
end
420-
421-
if not chk -u $[HAX] "ntrboot"
422-
if not ask "!!WARNING!!\nntrboot not detected!\nYou should at least have ntrboot or a hardmod\nwith you before proceeding in case of brick.\n \nProceed anyway?"
423-
goto MainMenu_Restore_Options
424-
end
425-
end
426-
427-
if chk -u $[ONTYPE] "N3DS"
428-
goto Unhax_Old
429-
end
430-
431-
if not sha S:/sector0x96.bin 82F2730D2C2DA3F30165F987FDCCAC5CBAB24B4E5F65C981CD7BE6F438E6D9D3
432-
if not find 0:/boot9strap/secret_sector.bin SECRET
433-
if not find $[GM9IN]/boot9strap/secret_sector.bin SECRET
434-
echo "Sector 0x96 is not genuine.\nYou must have the secret_sector.bin file in the\nboot9strap folder first then try again.\n \nAborting."
435-
goto Hax_Options_Install_Boot9Strap
436-
end
437-
end
438-
439-
if not allow -a S:
440-
echo "Permissions denied. Aborting."
441-
goto MainMenu_Hax_Options
442-
end
443-
444-
cp -n -w S:/sector0x96.bin $[SECRET].bak
445-
cp -n -w $[SECRET] S:/sector0x96.bin
446-
end
447-
448-
if not find 1:/title/00040138/20000002/content/????????.app NATIVE_NCCH
449-
echo "NATIVE_FIRM not found.\nIs this a N3DS?"
450-
goto MainMenu_Hax_Options
451-
end
452-
453-
imgmount $[NATIVE_NCCH]
454-
verify G:/exefs/.firm
455-
set NATIVE_FIRM $[GM9OUT]/NATIVE_FIRM.firm
456-
cp -w G:/exefs/.firm $[NATIVE_FIRM]
457-
imgumount
458-
459-
if allow -a S:
460-
allow -a 1:
461-
rm -o -s 1:/boot.firm
462-
rm -o -s 1:/rw/luma
463-
cp -n $[NATIVE_FIRM] S:/firm0.bin
464-
cp -n $[NATIVE_FIRM] S:/firm1.bin
465-
shaget S:/nand.bin@57FFE00:200 PRE_STAGE2_HASH
466-
if not sha S:/nand.bin@B800000:200 $[PRE_STAGE2_HASH]
467-
fget S:/nand.bin@57FFE00:1 PRE_STAGE2
468-
fill S:/nand.bin@B7FFE00:89C00 $[PRE_STAGE2]
469-
end
470-
echo "CFW uninstalled successfully"
471-
else
472-
echo "Permissions denied. Aborting."
473-
end
474-
goto MainMenu_Hax_Options
475-
476-
@Unhax_Old
477-
478-
if not find 1:/title/00040138/00000002/content/????????.app NATIVE_NCCH
479-
echo "NATIVE_FIRM not found.\nIs this an O3DS?"
480-
goto MainMenu_Hax_Options
481-
end
482-
483-
imgmount $[NATIVE_NCCH]
484-
verify G:/exefs/.firm
485-
set NATIVE_FIRM $[GM9OUT]/NATIVE_FIRM.firm
486-
cp -w G:/exefs/.firm $[NATIVE_FIRM]
487-
imgumount
488-
489-
if allow -a S:
490-
allow -a 1:
491-
rm -o -s 1:/boot.firm
492-
rm -o -s 1:/rw/luma
493-
cp -n $[NATIVE_FIRM] S:/firm0.bin
494-
cp -n $[NATIVE_FIRM] S:/firm1.bin
495-
shaget S:/nand.bin@57FFE00:200 PRE_STAGE2_HASH
496-
if not sha S:/nand.bin@B800000:200 $[PRE_STAGE2_HASH]
497-
fget S:/nand.bin@57FFE00:1 PRE_STAGE2
498-
fill S:/nand.bin@B7FFE00:89C00 $[PRE_STAGE2]
499-
end
500-
echo "CFW uninstalled successfully"
501-
else
502-
echo "Permissions denied. Aborting."
503-
end
504-
goto MainMenu_Hax_Options
505-
506412
################FBI to H&S Options################
507413

508414
@MainMenu_FBI_to_H&S_Options

0 commit comments

Comments
 (0)