From eb4daffe5f8ba1a848536f518dcae9995598f78c Mon Sep 17 00:00:00 2001 From: Star-F0rce Date: Tue, 21 Apr 2026 19:23:18 -0400 Subject: [PATCH 1/3] Update ltd version to 4 --- ShareMii.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ShareMii.py b/ShareMii.py index ec162e0..09bf8ef 100644 --- a/ShareMii.py +++ b/ShareMii.py @@ -479,10 +479,7 @@ def ShareMii(mode: str, slot: int, save: str, miipath:str, backup:bool = True): canvasSection = bytearray.fromhex('A3 A3 A3 A3') ugcSection = bytearray.fromhex('A4 A4 A4 A4') #Actually create the Mii file - if slot == -1: - miiVersion = 1 - else: - miiVersion = 3 + miiVersion = 4 ltdData = bytearray(3) #If facepaint is detected, copy and rename them if facepaint: From 3e7fc754aa77b8b8c5947d3e3b221dc7d33bde57 Mon Sep 17 00:00:00 2001 From: Star-F0rce Date: Tue, 21 Apr 2026 19:28:38 -0400 Subject: [PATCH 2/3] Create ltdv4.hexpat --- ltdv4.hexpat | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 ltdv4.hexpat diff --git a/ltdv4.hexpat b/ltdv4.hexpat new file mode 100644 index 0000000..6ad3ad9 --- /dev/null +++ b/ltdv4.hexpat @@ -0,0 +1,25 @@ +struct entry { + u32 hash; + u32 type; + // value, if string have the length before +}; + +struct ltd { + u8 version; // v4 + bool hasFacePaintCanvas; + bool hasFacePaintTex; + u8 entryCount; + + entry entries[entryCount]; + + if (hasFacePaintCanvas) { + u32 canvasMagic; + u32 canvasSize; + u8 canvasData[canvasSize]; + } + + if (hasFacePaintTex) { + u32 texMagic; + u32 texSize; + u8 texData[texSize]; + } \ No newline at end of file From 0df401b2b861d0e1928f752715e05cb41401f39a Mon Sep 17 00:00:00 2001 From: Star-F0rce Date: Tue, 21 Apr 2026 19:53:21 -0400 Subject: [PATCH 3/3] haha oops that didn't paste correctly --- ltdv4.hexpat | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ltdv4.hexpat b/ltdv4.hexpat index 6ad3ad9..c550451 100644 --- a/ltdv4.hexpat +++ b/ltdv4.hexpat @@ -22,4 +22,5 @@ struct ltd { u32 texMagic; u32 texSize; u8 texData[texSize]; - } \ No newline at end of file + } +} \ No newline at end of file