From 9c1ded3b0ae8e540177ee0c0baa1f9c8fcf91989 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Wed, 18 Mar 2009 20:52:11 +0100 Subject: Initial commit of sources --- wii_tik.h | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 wii_tik.h (limited to 'wii_tik.h') diff --git a/wii_tik.h b/wii_tik.h new file mode 100644 index 0000000..962a256 --- /dev/null +++ b/wii_tik.h @@ -0,0 +1,43 @@ +/** + * wii_tik.h + */ + +#ifndef __WII_TIK_H__ +#define __WII_TIK_H__ + +#include +#include "types.h" + +typedef struct { + u32 tag; + u32 value; +} wii_tik_limit; + +typedef struct { + u32 sig_type; + u8 signature[0x100]; + u8 ukn0[0x3c]; + char issuer[64]; + u8 ukn1[0x3f]; + u8 title_key_enc[0x10]; + u8 unk2; + u64 ticket_id; + u32 console_id; + u32 title_category; + u32 title_id; + u16 access_mask; + u16 bought_dlc_contents; + u64 unk4; + u8 common_key_index; /* 1 = Korean Key, 0 = Common Key */ + u8 unk5[0x30]; + u8 unk6[0x20]; + u16 unk7; + u32 has_time_limit; + u32 time_limit_sec; /* Seconds */ + u8 unk8[0x58]; +} wii_tik; + +void tik_read(FILE *f, wii_tik *tik); +void print_tik(wii_tik *tik); + +#endif -- cgit v1.1-32-gdbae