Skip to content

Commit 25ff9e2

Browse files
committed
split up relevant firmware versions from the rest
1 parent 905e136 commit 25ff9e2

File tree

1 file changed

+35
-8
lines changed

1 file changed

+35
-8
lines changed

MSET9_installer_script/mset9.py

Lines changed: 35 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,10 @@ def writeProtectCheck():
207207
3: "Old 3DS/2DS, 11.4.0 to 11.7.0",
208208
4: "New 3DS/2DS, 11.4.0 to 11.7.0"
209209
}
210+
211+
primaryConsoleVersions = [ 1, 2 ]
212+
secondaryConsoleVersions = [ 3, 4 ]
213+
210214
consoleIndex = 0
211215

212216
encodedID1s = {
@@ -238,9 +242,7 @@ def writeProtectCheck():
238242
trigger = "002F003A.txt" # all 3ds ":/" in hex format
239243
triggerFilePath = ""
240244

241-
def createHaxID1():
242-
global consoleIndex, ID0, hackedID1, hackedID1Path, realID1Path, realID1BackupTag
243-
245+
def pickConsoleVersion():
244246
clearScreen()
245247
print(f"MSET9 {VERSION} SETUP by zoogie, Aven, DannyAAM and thepikachugamer")
246248
print("What is your console model and version?")
@@ -249,14 +251,39 @@ def createHaxID1():
249251

250252
print("\n-- Please type in a number then hit return --\n")
251253

252-
print("Enter one of these four numbers!")
253-
for i in consoleNames:
254-
print(f"Enter {i} for: {consoleNames[i]}")
254+
print("Enter one of these numbers!")
255+
for i in primaryConsoleVersions:
256+
print(f"{i}: {consoleNames[i]}")
257+
258+
print("9: Other firmware versions")
259+
260+
selectedIndex = getInput([*primaryConsoleVersions, 9])
261+
if selectedIndex < 0:
262+
prgood("Goodbye!")
263+
exitOnEnter()
264+
265+
if selectedIndex != 9:
266+
return selectedIndex
267+
268+
for i in secondaryConsoleVersions:
269+
print(f"{i}: {consoleNames[i]}")
255270

256-
selectedIndex = getInput(range(1, 4))
271+
print("0: Back")
272+
selectedIndex = getInput([*secondaryConsoleVersions, 0])
257273
if selectedIndex < 0:
258274
prgood("Goodbye!")
259-
exitOnEnter(remount=True)
275+
exitOnEnter()
276+
277+
if selectedIndex != 0:
278+
return selectedIndex
279+
280+
return pickConsoleVersion()
281+
282+
283+
def createHaxID1():
284+
global consoleIndex, ID0, hackedID1, hackedID1Path, realID1Path, realID1BackupTag
285+
286+
selectedIndex = pickConsoleVersion()
260287

261288
hackedID1 = bytes.fromhex(encodedID1s[selectedIndex]).decode("utf-16le")
262289

0 commit comments

Comments
 (0)