mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-22 19:29:18 +01:00
63631b8028
*added channel hooking (real and emu). *proper catch of none existing cheats on server if file is not found *added back channel nand emulation mode and per game nand emu settings for channels (emulation mode can't be set to OFF for emu channels) *improved handle of cached titles. (on first boot of this revision the cache title file will be renewed) *settings title, keyboard text and key color can be changed by themes now *added optional background image for list/carousel/grid layouts. The files do not actually exist in the loader. They are loaded if they exists otherwise the default background image is used.See here for filenames: http://code.google.com/p/usbloader-gui/source/browse/trunk/source/themes/filelist.h?r=1148#776 *add flush of homebrew memory before launching app_booter *change: if titles from wiitdb is not enabled the title will be read from game disc header on /title [ID6]/[ID6].wbfs (iso/ciso) pattern. Title caching can still be used and is recommended in that case. *added keep of AHBPROT flag on IOS Reload. Homebrews booted now have AHBPROT. (thanks davebaol) *fixed loading ocarina files from SD when doing nand emulation from SD *fix port libs includes reference in Makefile
32 lines
789 B
C++
32 lines
789 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 s32 ReloadIosKeepingRights(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
|