diff --git a/include/arm11/config.h b/include/arm11/config.h index c9487a6..7584a03 100644 --- a/include/arm11/config.h +++ b/include/arm11/config.h @@ -30,6 +30,8 @@ KBootOption7, KBootOption8, KBootOption9, + + KSplashScreen, KBootOption1Buttons, KBootOption2Buttons, diff --git a/source/arm11/config.c b/source/arm11/config.c index c048679..5b11e2e 100644 --- a/source/arm11/config.c +++ b/source/arm11/config.c @@ -54,8 +54,8 @@ static void unloadConfigFile(); static bool createConfigFile(); static bool parseConfigFile(); -static bool parseBootOption(AttributeEntryType *attr); -static bool writeBootOption(AttributeEntryType *attr, const void *newData, int key); +static bool parsePath(AttributeEntryType *attr); +static bool writePath(AttributeEntryType *attr, const void *newData, int key); static bool parseBootOptionPad(AttributeEntryType *attr); static bool writeBootOptionPad(AttributeEntryType *attr, const void *newData, int key); static bool parseBootMode(AttributeEntryType *attr); @@ -74,6 +74,8 @@ "BOOT_OPTION8", "BOOT_OPTION9", + "SPLASH_SCREEN", + "BOOT_OPTION1_BUTTONS", "BOOT_OPTION2_BUTTONS", "BOOT_OPTION3_BUTTONS", @@ -104,13 +106,13 @@ static const FunctionsEntryType *getKeyFunction(int key) { static const FunctionsEntryType keyFunctions[] = { - { parseBootOption, writeBootOption }, + { parsePath, writePath }, { parseBootOptionPad, writeBootOptionPad }, { parseBootMode, writeBootMode }, { parseDevMode, writeDevMode } }; - if(key <= KBootOption9 && key >= KBootOption1) + if(key <= KSplashScreen && key >= KBootOption1) return &keyFunctions[0]; if(key <= KBootOption9Buttons && key >= KBootOption1Buttons) return &keyFunctions[1]; @@ -658,7 +660,7 @@ return true; } -static bool parseBootOption(AttributeEntryType *attr) +static bool parsePath(AttributeEntryType *attr) { attr->data = NULL; @@ -679,7 +681,7 @@ return true; } -static bool writeBootOption(AttributeEntryType *attr, const void *newData, int key) +static bool writePath(AttributeEntryType *attr, const void *newData, int key) { u32 len; char *buf;