mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-03 18:15:06 +01:00
a09abe355f
* Fixed issue 1058 * Menus splitted to several smaller files, to reduce compile time This version has FAT support. You can change the used partition in the game load options. Default WBFS will be used, if found. Otherwise the first FAT partition with games will be used. FAT will only work when using Hermes cios (222/223)!!!
61 lines
1.5 KiB
C
61 lines
1.5 KiB
C
#ifndef _WBFS_H_
|
|
#define _WBFS_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "libwbfs/libwbfs.h"
|
|
/* Device list */
|
|
enum {
|
|
WBFS_DEVICE_USB = 1, /* USB device */
|
|
WBFS_DEVICE_SDHC /* SDHC device */
|
|
};
|
|
|
|
/* Macros */
|
|
#define WBFS_MIN_DEVICE 1
|
|
#define WBFS_MAX_DEVICE 2
|
|
|
|
extern s32 wbfsDev;
|
|
extern int wbfs_part_fat;
|
|
extern u32 wbfs_part_idx;
|
|
extern u32 wbfs_part_lba;
|
|
extern char wbfs_fat_drive[16];
|
|
|
|
/* Prototypes */
|
|
void GetProgressValue(s32 * d, s32 * m);
|
|
s32 WBFS_Init(u32);
|
|
s32 WBFS_Open(void);
|
|
s32 WBFS_Format(u32, u32);
|
|
s32 WBFS_GetCount(u32 *);
|
|
s32 WBFS_GetHeaders(void *, u32, u32);
|
|
s32 __WBFS_ReadDVD(void *fp, u32 lba, u32 len, void *iobuf);
|
|
wbfs_t *GetHddInfo(void);
|
|
s32 WBFS_CheckGame(u8 *);
|
|
s32 WBFS_AddGame(void);
|
|
s32 WBFS_RemoveGame(u8 *);
|
|
s32 WBFS_GameSize(u8 *, f32 *);
|
|
s32 WBFS_DiskSpace(f32 *, f32 *);
|
|
s32 WBFS_RenameGame(u8 *, const void *);
|
|
s32 WBFS_ReIDGame(u8 *discid, const void *newID);
|
|
f32 WBFS_EstimeGameSize(void);
|
|
|
|
s32 __WBFS_ReadUSB(void *fp, u32 lba, u32 count, void *iobuf);
|
|
s32 __WBFS_WriteUSB(void *fp, u32 lba, u32 count, void *iobuf);
|
|
|
|
s32 WBFS_OpenPart(u32 part_fat, u32 part_idx, u32 part_lba, u32 part_size, char *partition);
|
|
s32 WBFS_OpenNamed(char *partition);
|
|
s32 WBFS_OpenLBA(u32 lba, u32 size);
|
|
wbfs_disc_t* WBFS_OpenDisc(u8 *discid);
|
|
void WBFS_CloseDisc(wbfs_disc_t *disc);
|
|
bool WBFS_Close();
|
|
bool WBFS_Mounted();
|
|
bool WBFS_Selected();
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|