Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions ShareMii.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
26 changes: 26 additions & 0 deletions ltdv4.hexpat
Original file line number Diff line number Diff line change
@@ -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];
}
}