mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-18 01:09:16 +01:00
9da497419c
*Added better wait loop for HDD spin up *Changed almost all default config paths which are set when no config exists to be set to where the actual config file is saved (either /apps/usbloader_gx/ or /config/) *Changed to startup and load a cios right away before loading settings. You need to have at least one non stub cios 249, 222 or 250 to start the loader now *Fixed 30 secs timer on HDD spin wait *Updated libfat to new libogc version
42 lines
785 B
C
42 lines
785 B
C
#ifndef _FATMOUNTER_H_
|
|
#define _FATMOUNTER_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
#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();
|
|
int USBDevice_Init_Loop(); //! Wait's for the drive before mounting it, only used on bootup
|
|
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;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|