usbloadergx/source/usbloader/wbfs.h
dimok321 a3495651f0 *Added support for starting .wbfs game files from fat32/ntfs partitions on a sector size > 512 (tested with 4096)
*modified libcustomfat and ntfs fragment fetch function to support >512 bytes per sector
*Added new ehcmodule (thanks rodries)
*Added real support of using both ports simultaniously without shutting down the other (thanks rodries for the ehcmodule works on this). There is no longer the limitation that the settings have to be on SD card for this. (ONLY HERMES CIOS)
*Moved a few settings to Feature Settings and added a new Hard Drive Settings
*Changed Wiinnertag path to only point to the path and not to the file. You must correct the path manually in custom path settings or reset you configs for this change or Winnertag won't work!!
*Removed a few compile warnings for devkitPPC R23
2011-06-22 17:57:37 +00:00

51 lines
1.2 KiB
C

#ifndef _WBFS_H_
#define _WBFS_H_
#include "libs/libwbfs/libwbfs.h"
#include "usbloader/disc.h"
#ifdef __cplusplus
extern "C"
{
#endif
#define PART_FS_WBFS 0
#define PART_FS_FAT 1
#define PART_FS_NTFS 2
#define PART_FS_EXT 3
/* Macros */
#define WBFS_MIN_DEVICE 1
#define WBFS_MAX_DEVICE 2
/* Prototypes */
s32 WBFS_Init(u32 device);
s32 WBFS_Format(u32 lba, u32 size, u32 port);
s32 WBFS_GetCount(int part, u32 *count);
s32 WBFS_GetHeaders(int part, struct discHdr *, u32, u32);
s32 WBFS_CheckGame(u8 *gameid);
s32 WBFS_AddGame(void);
s32 WBFS_RemoveGame(u8 *gameid);
s32 WBFS_GameSize(u8 *gameid, f32 *size);
s32 WBFS_DiskSpace(f32 *used, f32 *free);
s32 WBFS_RenameGame(u8 *gameid, const void *newname);
s32 WBFS_ReIDGame(u8 *discid, const void *newID);
u64 WBFS_EstimeGameSize(void);
int WBFS_GetFragList(u8 *id);
s32 WBFS_OpenAll();
s32 WBFS_OpenPart(int part_num);
wbfs_disc_t* WBFS_OpenDisc(u8 *discid);
void WBFS_CloseDisc(wbfs_disc_t *disc);
bool WBFS_Close(int part);
void WBFS_CloseAll();
bool WBFS_Selected();
int MountWBFS(bool ShowGUI);
#ifdef __cplusplus
}
#endif
#endif