2014-06-19 19:47:13 +02:00
|
|
|
#ifndef __TMDIDENT_H__
|
|
|
|
#define __TMDIDENT_H__
|
|
|
|
|
2014-07-06 20:53:35 +02:00
|
|
|
#include <gctypes.h>
|
|
|
|
|
2013-10-12 20:38:34 +02:00
|
|
|
#define base_number 122
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
u32 hashes[5];
|
|
|
|
u32 base;
|
|
|
|
char info[0x10];
|
|
|
|
} iosHashes;
|
|
|
|
|
|
|
|
typedef struct _iosinfo_t {
|
|
|
|
u32 magicword; //0x1ee7c105
|
|
|
|
u32 magicversion; // 1
|
|
|
|
u32 version; // Example: 5
|
|
|
|
u32 baseios; // Example: 56
|
|
|
|
char name[0x10]; // Example: d2x
|
|
|
|
char versionstring[0x10]; // Example: beta2
|
|
|
|
} __attribute__((packed)) iosinfo_t;
|
|
|
|
|
2014-07-06 20:53:35 +02:00
|
|
|
extern iosHashes iosHash[base_number];
|
2014-06-19 19:47:13 +02:00
|
|
|
|
|
|
|
#endif
|