mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-16 00:15:08 +01:00
e9423c807e
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.
19 lines
262 B
C
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
|