2010-12-12 17:31:13 +01:00
|
|
|
#ifndef _WBFS_WBFS_H
|
|
|
|
#define _WBFS_WBFS_H
|
|
|
|
|
|
|
|
#include "wbfs_base.h"
|
|
|
|
#include "libs/libwbfs/libwbfs.h"
|
2011-02-02 19:30:15 +01:00
|
|
|
#include "usbloader/wbfs.h"
|
2011-01-28 22:19:43 +01:00
|
|
|
#include "wbfs_rw.h"
|
2010-12-12 17:31:13 +01:00
|
|
|
|
|
|
|
class Wbfs_Wbfs: public Wbfs
|
|
|
|
{
|
2011-07-26 00:28:22 +02:00
|
|
|
public:
|
|
|
|
Wbfs_Wbfs(u32 device, u32 lba, u32 size, u32 port) :
|
|
|
|
Wbfs(device, lba, size, port)
|
|
|
|
{
|
|
|
|
}
|
2010-12-12 17:31:13 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
s32 Open();
|
|
|
|
virtual void Close();
|
|
|
|
wbfs_disc_t* OpenDisc(u8 *);
|
|
|
|
void CloseDisc(wbfs_disc_t *);
|
2010-12-12 17:31:13 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
s32 Format();
|
|
|
|
s32 GetCount(u32 *);
|
|
|
|
s32 GetHeaders(struct discHdr *, u32, u32);
|
2010-12-12 17:31:13 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
s32 AddGame();
|
|
|
|
s32 RemoveGame(u8 *);
|
2010-12-12 17:31:13 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
s32 DiskSpace(f32 *, f32 *);
|
2010-12-12 17:31:13 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
s32 RenameGame(u8 *, const void *);
|
|
|
|
s32 ReIDGame(u8 *, const void *);
|
2010-12-12 17:31:13 +01:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
u64 EstimateGameSize();
|
|
|
|
int GetFragList(u8 *id);
|
|
|
|
private:
|
|
|
|
WBFS_PartInfo PartInfo;
|
2010-12-12 17:31:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //_WBFS_WBFS_H
|