refactored cia code

an attempt make errors in tik/tmd values rarer in occurence
This commit is contained in:
applestash
2014-08-30 12:34:24 +10:00
parent 652a50744a
commit 96960526e8
6 changed files with 62 additions and 47 deletions
+10 -9
View File
@@ -23,7 +23,7 @@ typedef struct
bool verbose;
struct{
u8 titleId[8];
u64 titleId;
u16 titleVersion[4];
u8 titleKey[16];
} common;
@@ -39,12 +39,12 @@ typedef struct
u8 formatVersion;
u16 version;
u8 ticketId[8];
u8 deviceId[4];
u64 ticketId;
u32 deviceId;
u8 licenceType;
u8 audit;
u8 eshopAccId[4];
u32 eshopAccId;
} tik;
struct{
@@ -52,10 +52,11 @@ typedef struct
u8 formatVersion;
u16 version;
u8 titleType[4];
u8 savedataSize[4];
u8 privSavedataSize[4];
u32 accessRights;
u32 titleType;
u32 savedataSize;
u32 privSavedataSize;
u8 twlFlag;
} tmd;