mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-25 20:56:53 +01:00
1fe96748b7
*NOTE* it is possible to change any game ID to more or less than 6 characters, but since most of the functions use header->id[0] through [5], more will be useless and less may result in code dumps. it is not advised to change the ID for games that are not custom, as the cover and wiitdb data will not be available for made up ID it is possible to have multiple games with the same ID on the wbfs partition, but when any of them are clicked, the wii will perform the selected action (play, delete, etc) on the first one it finds.
47 lines
1.1 KiB
C
47 lines
1.1 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
|
|
|
|
/* Prototypes */
|
|
void GetProgressValue(s32 * d, s32 * m);
|
|
s32 WBFS_Init(u32);
|
|
s32 WBFS_Open(void);
|
|
s32 WBFS_Close(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);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|