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: diff --git a/ltdv4.hexpat b/ltdv4.hexpat new file mode 100644 index 0000000..c550451 --- /dev/null +++ b/ltdv4.hexpat @@ -0,0 +1,26 @@ +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