usbloadergx/source/fatmounter.h
ardi@ist-einmalig.de e9423c807e makes the forwarder fit for loading the "USB Loader GX" from USB-Device
Strategy to find the boot.dol from "USB Loader GX":

1. looking for "/config/GXGlobal.cfg" first on "SD:/" and then on "USB:/"
2.1. when cfg is found and update_path is set, then searches for "boot.dol"/"boot.elf" in "update_path"
2.2. when cfg isn't found or update_path isn't set, then looking for "boot.dol"/"boot.elf" in "apps/usbloader_gx/" first on "SD:/" and then on "USB:/" 
3. if the Loader is found, then LOAD and RUN it. Otherwise exits the for-warder

Primarily searched on SD-Card. This makes easier to test new versions.
2009-06-09 18:26:47 +00:00

20 lines
251 B
C

#ifndef _FATMOUNTER_H_
#define _FATMOUNTER_H_
#ifdef __cplusplus
extern "C"
{
#endif
int USBDevice_Init();
void USBDevice_deInit();
int isSdInserted();
int SDCard_Init();
void SDCard_deInit();
#ifdef __cplusplus
}
#endif
#endif