mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-09-08 08:33:19 +02:00
![e.bovendeur](/assets/img/avatar_default.png)
* Added MEM2 support by Hibern * Better partition support (by oggzee) * Support for subdirectories in FAT32 (by oggzee) * Added support for cios 223 and 250 * Added BCA support (go to Settings->Custom Paths) to change the path of the BCA files (by Hermes) * Fixed issue with hairless mode * Fixed issue with IOS_ReloadIOSsafe (by giantpune) * Added setting to save games in a subdirectory * Fixed slow startup when loading from FAT (WiiTDB required!) * Changed handling of new titles a bit (speed improvement) Known issue: * FAT rename and re-id broken again due to subdirectory support (yes, I'm lazy)
60 lines
1.2 KiB
C
60 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 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(const u8 *);
|
|
s32 Disc_ReadHeader(void *);
|
|
s32 Disc_IsWii(void);
|
|
s32 Disc_BootPartition(u64, u8, u8, u8, u8, u8, u8, u32);
|
|
s32 Disc_WiiBoot(u8, u8, u8, u8, u8, u8, u32);
|
|
s32 __Disc_FindPartition(u64 *outbuf);
|
|
void PatchCountryStrings(void *Address, int Size);
|
|
s32 __Disc_FindPartition(u64 *outbuf);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|