mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-19 09:49:21 +01:00
32144f46f9
*Lots of small fixes *Added Error002fix selection in GameSettings **NOTE 1: You might want to delete your Configfiles before using this new Rev. **NOTE 2: Known issue with Settings is that WiiMotePointer is sometimes being displaced. I am searching for the reason right now.
58 lines
867 B
C
58 lines
867 B
C
#ifndef _DISC_H_
|
|
#define _DISC_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
/* Disc header structure */
|
|
struct discHdr
|
|
{
|
|
/* Game ID */
|
|
u8 id[6];
|
|
|
|
/* Game version */
|
|
u16 version;
|
|
|
|
/* Audio streaming */
|
|
u8 streaming;
|
|
u8 bufsize;
|
|
|
|
/* Padding */
|
|
u8 unused1[14];
|
|
|
|
/* Magic word */
|
|
u32 magic;
|
|
|
|
/* Padding */
|
|
u8 unused2[4];
|
|
|
|
/* Game title */
|
|
char title[64];
|
|
|
|
/* Encryption/Hashing */
|
|
u8 encryption;
|
|
u8 h3_verify;
|
|
|
|
/* Padding */
|
|
u8 unused3[30];
|
|
} ATTRIBUTE_PACKED;
|
|
|
|
/* Prototypes */
|
|
s32 Disc_Init(void);
|
|
s32 Disc_Open(void);
|
|
s32 Disc_Wait(void);
|
|
void __Disc_SetLowMem(void);
|
|
s32 Disc_SetUSB(u8 *, int ios222);
|
|
s32 Disc_ReadHeader(void *);
|
|
s32 Disc_IsWii(void);
|
|
s32 Disc_BootPartition(u64, u8, u8, u8, u8, u8);
|
|
s32 Disc_WiiBoot(u8, u8, u8, u8, u8);
|
|
void PatchCountryStrings(void *Address, int Size);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|