Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions GM9Megascript.gm9
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,12 @@ if allow -a S:
rm -o -s 1:/rw/luma
cp -n $[NATIVE_FIRM] S:/firm0.bin
cp -n $[NATIVE_FIRM] S:/firm1.bin
echo "CFW un-installed successfully"
shaget S:/nand.bin@57FFE00:200 PRE_STAGE2_HASH
if not sha S:/nand.bin@B800000:200 $[PRE_STAGE2_HASH]
fget S:/nand.bin@57FFE00:1 PRE_STAGE2
fill S:/nand.bin@B7FFE00:89C00 $[PRE_STAGE2]
end
echo "CFW uninstalled successfully"
else
echo "Permissions denied. Aborting."
end
Expand All @@ -457,12 +462,17 @@ set NATIVE_FIRM $[GM9OUT]/NATIVE_FIRM.firm
cp -w G:/exefs/.firm $[NATIVE_FIRM]
imgumount

if allow S:/nand.bin
allow 1:
if allow -a S:
allow -a 1:
rm -o -s 1:/boot.firm
rm -o -s 1:/rw/luma
cp -n $[NATIVE_FIRM] S:/firm0.bin
cp -n $[NATIVE_FIRM] S:/firm1.bin
shaget S:/nand.bin@57FFE00:200 PRE_STAGE2_HASH
if not sha S:/nand.bin@B800000:200 $[PRE_STAGE2_HASH]
fget S:/nand.bin@57FFE00:1 PRE_STAGE2
fill S:/nand.bin@B7FFE00:89C00 $[PRE_STAGE2]
end
echo "CFW uninstalled successfully"
else
echo "Permissions denied. Aborting."
Expand Down