Skip to content

Commit a4e3c77

Browse files
committed
check if the user is opening StreetPass Mii Plaza
1 parent a9be74f commit a4e3c77

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

MSET9_installer_script/mset9.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -754,9 +754,10 @@ def createHaxID1():
754754
titleDatabasesGood = False
755755
menuExtdataGood = False
756756
miiExtdataGood = False
757+
miiPlazaExtdata = False
757758

758759
def sanity():
759-
global fs, hackedID1Path, titleDatabasesGood, menuExtdataGood, miiExtdataGood
760+
global fs, hackedID1Path, titleDatabasesGood, menuExtdataGood, miiExtdataGood, miiPlazaExtdata
760761

761762
prinfo("Checking databases...")
762763
checkTitledb = softcheck(hackedID1Path + "/dbs/title.db", 0x31E400)
@@ -771,15 +772,16 @@ def sanity():
771772

772773
prinfo("Checking for HOME Menu extdata...")
773774
for i in homeMenuExtdata:
774-
extdataRegionCheck = hackedID1Path + f"/extdata/00000000/{i:08X}"
775-
if fs.exists(extdataRegionCheck):
775+
if fs.exists(hackedID1Path + f"/extdata/00000000/{i:08X}"):
776776
menuExtdataGood = True
777777
break
778778

779779
prinfo("Checking for Mii Maker extdata...")
780780
for i in miiMakerExtdata:
781-
extdataRegionCheck = hackedID1Path + f"/extdata/00000000/{i:08X}"
782-
if fs.exists(extdataRegionCheck):
781+
if fs.exists(hackedID1Path + f"/extdata/00000000/{i+1:08X}"): # *
782+
miiPlazaExtdata = True
783+
784+
if fs.exists(hackedID1Path + f"/extdata/00000000/{i:08X}"):
783785
miiExtdataGood = True
784786
break
785787

@@ -800,6 +802,9 @@ def sanityReport():
800802
if not miiExtdataGood:
801803
prbad("Mii Maker extdata: Missing!")
802804
prinfo("Please power on your console with your SD inserted, then launch Mii Maker.")
805+
# *
806+
if miiPlazaExtdata:
807+
prinfo("Reminder: Mii Maker is the app with the \"Mii\" icon; StreetPass Mii Plaza is different!")
803808
else:
804809
prgood("Mii Maker extdata: OK!")
805810

0 commit comments

Comments
 (0)