mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-12-30 22:01:55 +01:00
6723f00181
-if a IOS is found which got the AHBPROT patched out, wiiflow will run on it (for example if you boot wiiflow via HBC, it will boot with IOS58 instead of 249) -on game boot or on entering emu nand, wiiflow automatically reloads IOS if necessary -added check to only reload IOS if its really a different one -removed SD card gecko log buffer allocation, using some buffer in dol directly (should allow longer logging, untested) -set wiiflow optimize level back to -O2
36 lines
764 B
C
36 lines
764 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(u32 port);
|
|
s32 USBStorage2_GetPort();
|
|
|
|
extern int usb_libogc_mode;
|
|
|
|
#define DEVICE_TYPE_WII_UMS (('W'<<24)|('U'<<16)|('M'<<8)|'S')
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|