mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-25 20:56:53 +01:00
973d8b2005
*Converted every 4 spaces to a tab to make the source consistent on those
31 lines
743 B
C++
31 lines
743 B
C++
#ifndef _IOSLOADER_H_
|
|
#define _IOSLOADER_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 IosLoader
|
|
{
|
|
public:
|
|
static s32 LoadAppCios();
|
|
static s32 LoadGameCios(s32 ios);
|
|
static s32 ReloadIosSafe(s32 ios);
|
|
static bool IsHermesIOS(s32 ios = IOS_GetVersion());
|
|
static bool IsWaninkokoIOS(s32 ios = IOS_GetVersion());
|
|
static bool IsD2X(s32 ios = IOS_GetVersion());
|
|
static iosinfo_t *GetIOSInfo(s32 ios);
|
|
private:
|
|
static void LoadIOSModules(s32 ios, s32 ios_rev);
|
|
};
|
|
|
|
#endif
|