mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-30 15:14:18 +01:00
971b5bdb52
to be divisible with 4 anymore, you can use what you want -moved sound buffers back in mem2, idk but for wiiflow it gives a better result -added mem2 memalign placeholder for new memory manager (after a week still everything but finished) -updated other small things, cleaned up source structure a bit
52 lines
1.3 KiB
C
52 lines
1.3 KiB
C
#ifndef _WBFS_H_
|
|
#define _WBFS_H_
|
|
|
|
#include "libwbfs/libwbfs.h"
|
|
#include "utils.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Macros */
|
|
#define WBFS_MIN_DEVICE 1
|
|
#define WBFS_MAX_DEVICE 2
|
|
|
|
#define PART_FS_WBFS 0
|
|
#define PART_FS_FAT 1
|
|
#define PART_FS_NTFS 2
|
|
#define PART_FS_EXT 3
|
|
|
|
extern s32 wbfsDev;
|
|
extern int wbfs_part_fs;
|
|
extern u32 wbfs_part_idx;
|
|
extern u32 wbfs_part_lba;
|
|
extern char wbfs_fs_drive[16];
|
|
|
|
/* Prototypes */
|
|
s32 WBFS_Format(u32, u32);
|
|
s32 WBFS_Init(wbfs_t *handle, u32 part_fs, u32 part_idx, u32 part_lba, char *partition, u8 current);
|
|
s32 WBFS_CheckGame(u8 *, char *);
|
|
s32 WBFS_AddGame(progress_callback_t spinner, void *spinner_data);
|
|
s32 WBFS_RemoveGame(u8 *, char *);
|
|
s32 WBFS_GameSize(u8 *, char *, f32 *);
|
|
s32 WBFS_DVD_Size(u64 *comp_size, u64 *real_size);
|
|
s32 WBFS_DiskSpace(f32 *, f32 *);
|
|
|
|
wbfs_disc_t* WBFS_OpenDisc(u8 *discid, char *path);
|
|
void WBFS_CloseDisc(wbfs_disc_t *disc);
|
|
bool WBFS_Close();
|
|
bool WBFS_Mounted();
|
|
|
|
s32 __WBFS_ReadSDHC(void *fp, u32 lba, u32 count, void *iobuf);
|
|
s32 __WBFS_WriteSDHC(void *fp, u32 lba, u32 count, void *iobuf);
|
|
s32 __WBFS_ReadUSB(void *fp, u32 lba, u32 count, void *iobuf);
|
|
s32 __WBFS_WriteUSB(void *fp, u32 lba, u32 count, void *iobuf);
|
|
s32 __WBFS_ReadDVD(void *fp, u32 lba, u32 count, void *iobuf);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|