2009-10-01 01:10:58 +02:00
|
|
|
#ifndef _WBFS_H_
|
|
|
|
#define _WBFS_H_
|
|
|
|
|
2010-10-01 20:53:38 +02:00
|
|
|
#include "libs/libwbfs/libwbfs.h"
|
2010-02-15 00:22:52 +01:00
|
|
|
#include "usbloader/disc.h"
|
|
|
|
|
2009-10-01 01:10:58 +02:00
|
|
|
#ifdef __cplusplus
|
2010-09-19 01:16:05 +02:00
|
|
|
extern "C"
|
|
|
|
{
|
2009-10-01 01:10:58 +02:00
|
|
|
#endif
|
|
|
|
|
2010-09-19 01:16:05 +02:00
|
|
|
#define PART_FS_WBFS 0
|
|
|
|
#define PART_FS_FAT 1
|
|
|
|
#define PART_FS_NTFS 2
|
2010-12-09 21:57:35 +01:00
|
|
|
#define PART_FS_EXT 3
|
2009-12-19 15:05:31 +01:00
|
|
|
|
2010-02-15 00:22:52 +01:00
|
|
|
/* Macros */
|
2010-09-19 01:16:05 +02:00
|
|
|
#define WBFS_MIN_DEVICE 1
|
|
|
|
#define WBFS_MAX_DEVICE 2
|
2010-02-22 22:29:47 +01:00
|
|
|
|
2009-10-01 01:10:58 +02:00
|
|
|
/* Prototypes */
|
2011-02-02 19:30:15 +01:00
|
|
|
s32 WBFS_Init(u32 device);
|
2011-06-22 19:57:37 +02:00
|
|
|
s32 WBFS_Format(u32 lba, u32 size, u32 port);
|
2011-02-02 19:30:15 +01:00
|
|
|
s32 WBFS_GetCount(int part, u32 *count);
|
|
|
|
s32 WBFS_GetHeaders(int part, struct discHdr *, u32, u32);
|
|
|
|
s32 WBFS_CheckGame(u8 *gameid);
|
2010-09-24 02:48:03 +02:00
|
|
|
s32 WBFS_AddGame(void);
|
2011-02-02 19:30:15 +01:00
|
|
|
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);
|
2010-09-24 02:48:03 +02:00
|
|
|
s32 WBFS_ReIDGame(u8 *discid, const void *newID);
|
2011-01-16 14:12:07 +01:00
|
|
|
u64 WBFS_EstimeGameSize(void);
|
2010-02-22 22:29:47 +01:00
|
|
|
|
2010-09-24 02:48:03 +02:00
|
|
|
int WBFS_GetFragList(u8 *id);
|
2009-10-01 01:10:58 +02:00
|
|
|
|
2011-02-02 19:30:15 +01:00
|
|
|
s32 WBFS_OpenAll();
|
2010-12-31 00:49:22 +01:00
|
|
|
s32 WBFS_OpenPart(int part_num);
|
2010-09-24 02:48:03 +02:00
|
|
|
wbfs_disc_t* WBFS_OpenDisc(u8 *discid);
|
|
|
|
void WBFS_CloseDisc(wbfs_disc_t *disc);
|
2011-02-02 19:30:15 +01:00
|
|
|
bool WBFS_Close(int part);
|
|
|
|
void WBFS_CloseAll();
|
2010-09-19 01:16:05 +02:00
|
|
|
bool WBFS_Selected();
|
2010-10-27 21:50:48 +02:00
|
|
|
int MountWBFS(bool ShowGUI);
|
2009-11-15 20:52:58 +01:00
|
|
|
|
2009-10-01 01:10:58 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|