2012-08-11 14:27:38 +02:00
|
|
|
|
2012-01-21 21:57:41 +01:00
|
|
|
#ifndef _CIOSINFO_H_
|
|
|
|
#define _CIOSINFO_H_
|
|
|
|
|
|
|
|
#include <gccore.h>
|
2012-07-16 16:05:57 +02:00
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
2012-01-21 21:57:41 +01:00
|
|
|
|
2012-08-11 14:27:38 +02:00
|
|
|
typedef struct _iosinfo_t {
|
2012-01-21 21:57:41 +01:00
|
|
|
u32 magicword; //0x1ee7c105
|
|
|
|
u32 magicversion; // 1
|
|
|
|
u32 version; // Example: 5
|
|
|
|
u32 baseios; // Example: 56
|
|
|
|
char name[0x10]; // Example: d2x
|
|
|
|
char versionstring[0x10]; // Example: beta2
|
2012-08-11 14:27:38 +02:00
|
|
|
} iosinfo_t;
|
|
|
|
|
|
|
|
typedef struct _IOS_Info {
|
|
|
|
u32 Revision;
|
|
|
|
u8 Version;
|
|
|
|
u8 Type;
|
|
|
|
u8 Base;
|
|
|
|
} IOS_Info;
|
|
|
|
|
|
|
|
extern IOS_Info CurrentIOS;
|
|
|
|
void IOS_GetCurrentIOSInfo();
|
|
|
|
|
|
|
|
bool IOS_D2X(u8 ios, u8 *base);
|
|
|
|
u8 IOS_GetType(u8 slot);
|
2012-01-21 21:57:41 +01:00
|
|
|
|
2012-10-20 15:24:30 +02:00
|
|
|
s32 D2X_PatchReturnTo(u32 returnTo);
|
2012-07-16 16:05:57 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
2012-01-21 21:57:41 +01:00
|
|
|
|
2012-08-11 14:27:38 +02:00
|
|
|
#endif
|