WiiFlow_Lite/source/devicemounter/usbstorage.h
fix94.1 d8ee3c1b68 -changed version number to Beta 4.0.3
-recompiled mload modules for hermes cIOS
-added sdhc module for hermes cIOS
-fixed booting wii games from sd card
-improved wii game support via sd card, now you can use hermes, wanin
and d2x (not d2x only anymore)
-moved some more stuff to boot wii games into the external booter
-added gecko debug prints to external booter
-automatically disabling savegame emulator if you want to boot a wii
game via hermes or waninkoko cIOS
2012-09-28 17:24:04 +00:00

38 lines
804 B
C

#ifndef _USBSTORAGE2_H_
#define _USBSTORAGE2_H_
#include "ogc/disc_io.h"
#ifdef __cplusplus
extern "C"
{
#endif
/* Disc interfaces */
extern const DISC_INTERFACE __io_usbstorage2_port0;
extern const DISC_INTERFACE __io_usbstorage2_port1;
/* Prototypes */
s32 USBStorage2_Init(u32 port);
void USBStorage2_Deinit();
s32 USBStorage2_GetCapacity(u32 port, u32 *size);
s32 USBStorage2_ReadSectors(u32 port, u32 sector, u32 numSectors, void *buffer);
s32 USBStorage2_WriteSectors(u32 port, u32 sector, u32 numSectors, const void *buffer);
s32 USBStorage2_GetSectorSize();
s32 USBStorage2_SetPort(s8 port);
s8 USBStorage2_GetPort();
s32 USBStorage2_WBFS_SetDevice(int dev);
extern int usb_libogc_mode;
#define DEVICE_TYPE_WII_UMS (('W'<<24)|('U'<<16)|('M'<<8)|'S')
#ifdef __cplusplus
}
#endif
#endif