usbloadergx/source/cfg.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

19 lines
262 B
C

#ifndef _CFG_H_
#define _CFG_H_
#ifdef __cplusplus
extern "C"
{
#endif
extern char update_path[150];
void cfg_set(char *name, char *val);
bool cfg_parsefile(char * fname, void (*set_func)(char*, char*));
#ifdef __cplusplus
}
#endif
#endif