usbloadergx/source/wbfs.h
ardi@ist-einmalig.de f5e6663784 makes it possible to use a FAT-Partition on the USB WBFS-Disk
Boot-Strategy: 

- is "argv[0]" set, then the boot-device extracted from the argv. 
- if no meaningful boot device found, then looking for 
  "boot.dol"/"boot.elf" in "apps/usbloader_gx/" 
  first on "SD:/" and then on "USB:/". 
  When found, than use this Device. Otherwise use the default "SD:"
- Set all default-Paths on this Device 
- Set the Path for config-Folder, GXGlobal.cfg, GXGameSettings.cfg
  and GXGameFavorites.cfg on this Device (e.g. USB:/config and so on)
2009-06-09 23:26:03 +00:00

47 lines
947 B
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 */
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 *);
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