Skip to content

Commit a0bc525

Browse files
committed
check free space on inject only
1 parent 3bd1864 commit a0bc525

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

MSET9_installer_script/mset9.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -642,14 +642,6 @@ def writeProtectCheck():
642642
else:
643643
prgood("SD card is writeable!")
644644

645-
# Section: SD card free space
646-
# ensure 16MB free space
647-
if not fs.ensurespace(16 * 1024 * 1024):
648-
#prbad(f"Error 06: You need at least 16MB free space on your SD card, you have {(freeSpace / 1000000):.2f} bytes!")
649-
prbad("Error 06: You need at least 16MB free space on your SD card!")
650-
prinfo("Please free up some space and try again.")
651-
exitOnEnter()
652-
653645
clearScreen()
654646
print(f"MSET9 {VERSION} SETUP by zoogie, Aven, DannyAAM and thepikachugamer")
655647
print("What is your console model and version?")
@@ -841,6 +833,9 @@ def injection(create=True):
841833
fs.remove(triggerFilePath)
842834
haxState = 4
843835
prgood("Removed trigger file.")
836+
if not fs.ensurespace(16 * 1024 * 1024): # This is a good time to actually check the space
837+
prbad("Error 06: You need at least 16MB free space on your SD card!")
838+
prinfo("Please free up some space and try again.")
844839
return
845840

846841
prinfo("Injecting trigger file...")

0 commit comments

Comments
 (0)