mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-25 20:56:53 +01:00
052c6d4591
*update of ehcmodules for Hermes IOS supporting now more drives (thanks rodries again) *added ignore case sensitivity on NTFS (hopefully it works as good as it sounds) *fixed homebrew receiving in homebrew launcher via network *changed video switching code to the one from Wiiflow *allow ',' as floating point '.' *Fix of reloading titles after wiitdb update *reset all other button clicks on carousel when two or more buttons are clicked at once *a few code optimizations *fixed compile bug on OSX (Issue 1844 and Issue 1132) *language files updated
63 lines
1.2 KiB
C
63 lines
1.2 KiB
C
#ifndef _DISC_H_
|
|
#define _DISC_H_
|
|
|
|
#include <gccore.h> /* for define ATTRIBUTE_PACKED */
|
|
|
|
#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 is_ciso;
|
|
u8 unused1[13];
|
|
|
|
/* 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(const u8 *);
|
|
s32 Disc_ReadHeader(void *);
|
|
s32 Disc_IsWii(void);
|
|
s32 Disc_FindPartition(u64 *outbuf);
|
|
void PatchCountryStrings(void *Address, int Size);
|
|
void Disc_SelectVMode(u8 videoselected);
|
|
s32 Disc_JumpToEntrypoint(bool enablecheat, u32 dolparameter);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|