2009-09-30 23:10:58 +00:00
|
|
|
#ifndef _FATMOUNTER_H_
|
|
|
|
#define _FATMOUNTER_H_
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2010-09-18 23:16:05 +00:00
|
|
|
extern "C"
|
|
|
|
{
|
2009-09-30 23:10:58 +00:00
|
|
|
#endif
|
|
|
|
|
2010-09-24 13:46:32 +00:00
|
|
|
#include <gccore.h>
|
|
|
|
|
|
|
|
extern int fat_sd_mount;
|
|
|
|
extern sec_t fat_sd_sec;
|
|
|
|
extern int fat_usb_mount;
|
|
|
|
extern sec_t fat_usb_sec;
|
|
|
|
extern int fat_wbfs_mount;
|
|
|
|
extern sec_t fat_wbfs_sec;
|
|
|
|
|
|
|
|
int USBDevice_Init();
|
2010-11-28 15:31:08 +00:00
|
|
|
int USBDevice_Init_Loop(); //! Wait's for the drive before mounting it, only used on bootup
|
2010-09-24 13:46:32 +00:00
|
|
|
void USBDevice_deInit();
|
|
|
|
int WBFSDevice_Init(u32 sector);
|
|
|
|
void WBFSDevice_deInit();
|
|
|
|
int isInserted(const char *path);
|
|
|
|
int SDCard_Init();
|
|
|
|
void SDCard_deInit();
|
|
|
|
|
|
|
|
s32 MountNTFS(u32 sector);
|
|
|
|
s32 UnmountNTFS(void);
|
|
|
|
|
|
|
|
extern int fat_usb_mount;
|
|
|
|
extern sec_t fat_usb_sec;
|
|
|
|
extern int fat_wbfs_mount;
|
|
|
|
extern sec_t fat_wbfs_sec;
|
|
|
|
extern int fs_ntfs_mount;
|
|
|
|
extern sec_t fs_ntfs_sec;
|
2009-09-30 23:10:58 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|