mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-09 13:05:24 +01:00
661fe9ce6e
*Cleaned the GameBootProcess source a bit up and put it together to a class for better overview
21 lines
700 B
C++
21 lines
700 B
C++
#ifndef GAMEBOOTER_HPP_
|
|
#define GAMEBOOTER_HPP_
|
|
|
|
#include <gctypes.h>
|
|
|
|
class GameBooter
|
|
{
|
|
public:
|
|
static int BootGame(const char * gameID);
|
|
static int BootGCMode();
|
|
private:
|
|
static int FindDiscHeader(const char * gameID, struct discHdr &gameHeader);
|
|
static void SetupAltDOL(u8 * gameID, u8 &alternatedol, u32 &alternatedoloffset);
|
|
static int SetupDisc(u8 *gameID);
|
|
static bool LoadOcarina(u8 *gameID);
|
|
static u32 BootPartition(char * dolpath, u8 videoselected, u8 languageChoice, u8 cheat, u8 vipatch,
|
|
u8 patchcountrystring, u8 alternatedol, u32 alternatedoloffset, u32 returnTo, u8 fix002);
|
|
};
|
|
|
|
#endif
|