diff options
| author | 2009-03-18 20:52:11 +0100 | |
|---|---|---|
| committer | 2009-03-18 20:52:11 +0100 | |
| commit | 9c1ded3b0ae8e540177ee0c0baa1f9c8fcf91989 (patch) | |
| tree | 38aa36327c9e3c0fef1ef7ee77c707d987aff9d0 /wii_tik.h | |
| download | wiiwadtools-9c1ded3b0ae8e540177ee0c0baa1f9c8fcf91989.tar.gz wiiwadtools-9c1ded3b0ae8e540177ee0c0baa1f9c8fcf91989.tar.bz2 | |
Initial commit of sources
Diffstat (limited to 'wii_tik.h')
| -rw-r--r-- | wii_tik.h | 43 | 
1 files changed, 43 insertions, 0 deletions
| 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 <stdio.h> +#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 | 
