mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-18 17:29:17 +01:00
037edbe7ea
*Fixed freeze in theme menu when its empty *Optimized the game list loading on fat/ntfs/ext. This should speed up the loading process. *Added cache of game titles. This will speed up the startup after the cache file is written (in other words on second start of this rev). A TitlesCache.bin will be created in the same path as the wiitdb.xml for this. This should especial speed up the startup of fat/ntfs/ext partitions by a lot if no sub folders with the game titles are used, like GAMEID.wbfs only. That must have been painfully slow before on a lot of games. Should be at about the same speed as with sub folders now. I would still recommend to use sub folders. *Removed wiilight (disc slot) blinking when switching USB port on Hermes cIOSes (thanks rodries) *Added the ehcmodule sources from rodries to the branches *Updated language files
60 lines
1.6 KiB
C++
60 lines
1.6 KiB
C++
#ifndef _WBFS_FAT_H
|
|
#define _WBFS_FAT_H
|
|
|
|
#include <ogcsys.h>
|
|
|
|
#include "usbloader/splits.h"
|
|
#include "usbloader/wbfs.h"
|
|
#include "wbfs_base.h"
|
|
|
|
class Wbfs_Fat: public Wbfs
|
|
{
|
|
public:
|
|
Wbfs_Fat(u32 lba, u32 size, u32 part);
|
|
|
|
virtual s32 Open();
|
|
virtual void Close();
|
|
wbfs_disc_t* OpenDisc(u8 *);
|
|
void CloseDisc(wbfs_disc_t *);
|
|
|
|
s32 GetCount(u32 *);
|
|
s32 GetHeaders(struct discHdr *, u32, u32);
|
|
|
|
s32 AddGame();
|
|
s32 RemoveGame(u8 *);
|
|
|
|
s32 DiskSpace(f32 *, f32 *);
|
|
|
|
s32 RenameGame(u8 *, const void *);
|
|
s32 ReIDGame(u8 *, const void *);
|
|
|
|
u64 EstimateGameSize();
|
|
|
|
virtual int GetFragList(u8 *);
|
|
virtual u8 GetFSType(void) { return PART_FS_FAT; }
|
|
|
|
protected:
|
|
split_info_t split;
|
|
|
|
struct discHdr *fat_hdr_list;
|
|
u32 fat_hdr_count;
|
|
char wbfs_fs_drive[16];
|
|
|
|
wbfs_t* OpenPart(char *fname);
|
|
void ClosePart(wbfs_t* part);
|
|
wbfs_t* CreatePart(u8 *id, char *path);
|
|
int FindFilename(u8 *id, char *fname, int len);
|
|
void Filename(u8 *id, char *fname, int len, char *path);
|
|
bool CheckLayoutB(char *fname, int len, u8* id, char *fname_title);
|
|
s32 GetHeadersCount();
|
|
void GetDir(struct discHdr *header, char *path);
|
|
|
|
void mk_gameid_title(struct discHdr *header, char *name, int re_space, int layout);
|
|
void title_filename(char *title);
|
|
bool is_gameid(char *id);
|
|
|
|
static int nop_rw_sector(void *_fp, u32 lba, u32 count, void* buf) { return 0; }
|
|
};
|
|
|
|
#endif //_WBFS_FAT_H
|