hekate/nyx: adjust handling of ini return values
This commit is contained in:
@@ -226,7 +226,7 @@ void config_exosphere(launch_ctxt_t *ctxt, u32 warmboot_base)
|
||||
if (!ctxt->stock)
|
||||
{
|
||||
LIST_INIT(ini_exo_sections);
|
||||
if (ini_parse(&ini_exo_sections, "emusd:exosphere.ini", false))
|
||||
if (!ini_parse(&ini_exo_sections, "emusd:exosphere.ini", false))
|
||||
{
|
||||
LIST_FOREACH_ENTRY(ini_sec_t, ini_sec, &ini_exo_sections, link)
|
||||
{
|
||||
@@ -268,7 +268,7 @@ void config_exosphere(launch_ctxt_t *ctxt, u32 warmboot_base)
|
||||
if (!ctxt->exo_ctx.usb3_force)
|
||||
{
|
||||
LIST_INIT(ini_sys_sections);
|
||||
if (ini_parse(&ini_sys_sections, "emusd:atmosphere/config/system_settings.ini", false))
|
||||
if (!ini_parse(&ini_sys_sections, "emusd:atmosphere/config/system_settings.ini", false))
|
||||
{
|
||||
LIST_FOREACH_ENTRY(ini_sec_t, ini_sec, &ini_sys_sections, link)
|
||||
{
|
||||
|
||||
@@ -319,7 +319,7 @@ static void _launch_ini_list()
|
||||
goto parse_failed;
|
||||
|
||||
// Check that ini files exist and parse them.
|
||||
if (!ini_parse(&ini_list_sections, "bootloader/ini", true))
|
||||
if (ini_parse(&ini_list_sections, "bootloader/ini", true))
|
||||
{
|
||||
EPRINTF("No .ini files in bootloader/ini!");
|
||||
goto parse_failed;
|
||||
@@ -796,7 +796,7 @@ static void _auto_launch()
|
||||
emusd_load_cfg();
|
||||
|
||||
// Parse hekate main configuration.
|
||||
if (!ini_parse(&ini_sections, "bootloader/hekate_ipl.ini", false))
|
||||
if (ini_parse(&ini_sections, "bootloader/hekate_ipl.ini", false))
|
||||
goto out; // Can't load hekate_ipl.ini.
|
||||
|
||||
// Load configuration.
|
||||
@@ -885,7 +885,7 @@ static void _auto_launch()
|
||||
boot_entry_id = 1;
|
||||
bootlogoCustomEntry = NULL;
|
||||
|
||||
if (!ini_parse(&ini_list_sections, "bootloader/ini", true))
|
||||
if (ini_parse(&ini_list_sections, "bootloader/ini", true))
|
||||
goto skip_list;
|
||||
|
||||
LIST_FOREACH_ENTRY(ini_sec_t, ini_sec_list, &ini_list_sections, link)
|
||||
|
||||
@@ -47,7 +47,7 @@ void emummc_load_cfg()
|
||||
emu_cfg.emummc_file_based_path[0] = 0;
|
||||
|
||||
LIST_INIT(ini_sections);
|
||||
if (ini_parse(&ini_sections, "emuMMC/emummc.ini", false))
|
||||
if (!ini_parse(&ini_sections, "emuMMC/emummc.ini", false))
|
||||
{
|
||||
LIST_FOREACH_ENTRY(ini_sec_t, ini_sec, &ini_sections, link)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user