mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-12-23 10:21:55 +01:00
76df2b26b6
*add loading of wii games / nand channels / emu nand channels in all combinations into one list *add button on main view for quick choice between the combinations of the three *add "Real Nand" or "Emulated Nand" text on the game window prompt when starting a channel *removed the need of a cIOS to launch the loader (if anyone uses it with IOS58 for whatever reason). The warning that a cIOS is needed is still present. *removed support for both usb ports at once on hermes cIOS. Each can still be used individually but only one at a time. This is done because of some bugs in the new ehci module which make some games unbootable. The ehcimodule is now reverted to the last working one. Need feedback if the games work fine again. *some preparations for the upcoming stealth mode feature of the d2x cIOS *isfs is now initiated once and deinitated when cleaning up only (instead of the whole init/deinit every single access) *removed choice for emulated nand channel modes. Emulated nand channels always need full emulation which is now always used on emu nand for channels. *removed unused settings for channels from the per game setting *changed default partition to 0 when starting with fresh settings (instead of -1 wtf?)
51 lines
1.1 KiB
C
51 lines
1.1 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_ReInit(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();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|