2012-01-21 21:57:41 +01:00
|
|
|
#ifndef _CIOSINFO_H_
|
|
|
|
#define _CIOSINFO_H_
|
|
|
|
|
|
|
|
#include <gccore.h>
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
class cIOSInfo
|
|
|
|
{
|
|
|
|
public:
|
2012-07-13 15:16:13 +02:00
|
|
|
static bool neek2o(void);
|
2012-01-21 21:57:41 +01:00
|
|
|
static bool D2X(u8 ios, u8 *base);
|
2012-07-13 15:16:13 +02:00
|
|
|
static iosinfo_t *GetInfo(u8 ios);
|
2012-01-21 21:57:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|