mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-12-23 18:31:56 +01:00
e6a87c05fe
*Made the ProgressWindow for game installation more accurate *Added displaying newly installed games (marked as new) on favorite list, so you don't have to change to full list when installing new games. (Thanks Cyan for the patch) *Lot's a small fixes *Added WDM Menu on game start. You can set it in the alternative DOL option (one new option there). The menu lists all DOLs on the disc and if a wdm file is provided in the WDM path (configurable in the settings) than the dol parameter and dol replacement name will be taken from the wdm. The DOLs that are not listed in the WDM but exist on the DISC will be listed at the end of the list. *Added avoid of multiple app cleanup when game fails to boot *Changed libfat to use FS info sector on FAT32 partitions. This speeds up the free space information getting to instant. For that the FS info sector has to have correct values. The values of all partitions where homebrews were writing to are currently incorrect because the official libfat does not support FS info sector (i submited a patch) (Windows does write it correct though). That is why there needs to be a synchronization of the FS info sector for partitions used with homebrews. For this purpose a new setting was added in the Loader Settings. You can synchronize all your FAT32 partitions on the USB with it once and you are done (if you don't write to that partition with current homebrews). After that you can enable free space display and it will be instant like on WBFS/NTFS/EXT partitions.
48 lines
1.3 KiB
C++
48 lines
1.3 KiB
C++
#ifndef _H
|
|
#define _H
|
|
|
|
#include "libs/libwbfs/libwbfs.h"
|
|
#include "usbloader/utils.h"
|
|
#include "usbloader/frag.h"
|
|
|
|
#define CACHE_SIZE 32
|
|
#define CACHED_SECTORS 64
|
|
|
|
class Wbfs
|
|
{
|
|
public:
|
|
Wbfs(u32, u32, u32);
|
|
|
|
void GetProgressValue(s32 * d, s32 * m);
|
|
static s32 Init(u32);
|
|
s32 CheckGame(u8 *);
|
|
s32 GameSize(u8 *, f32 *);
|
|
wbfs_t *GetHddInfo(void);
|
|
bool IsMounted() { return hdd == 0; };
|
|
virtual int GetFragList(u8 *id) { return 0; };
|
|
virtual bool ShowFreeSpace(void);
|
|
|
|
virtual s32 Open() = 0;
|
|
virtual void Close() = 0;
|
|
virtual wbfs_disc_t* OpenDisc(u8 *discid) = 0;
|
|
virtual void CloseDisc(wbfs_disc_t *disc) = 0;
|
|
virtual s32 Format();
|
|
virtual s32 GetCount(u32 *) = 0;
|
|
virtual s32 GetHeaders(struct discHdr *, u32, u32) = 0;
|
|
virtual s32 AddGame(void) = 0;
|
|
virtual s32 RemoveGame(u8 *) = 0;
|
|
virtual s32 DiskSpace(f32 *, f32 *) = 0;
|
|
virtual s32 RenameGame(u8 *, const void *) = 0;
|
|
virtual s32 ReIDGame(u8 *discid, const void *newID) = 0;
|
|
virtual u64 EstimateGameSize(void) = 0;
|
|
protected:
|
|
static u32 nb_sectors;
|
|
wbfs_t *hdd;
|
|
u32 device, lba, size;
|
|
private:
|
|
|
|
static s32 total, done;
|
|
};
|
|
|
|
#endif //_H
|