nyx: fix first time config save unmounting

SD card should not get unmounted on the first boot without hekate_ipl.ini.
Move sd card mounting management outside of it.
This commit is contained in:
CTCaer committed 2023-07-28 03:32:33 +03:00
1 parent b142ca0f33
commit f35c5b0596
2 files changed
+6 -5

No files matched your search

-4
View File
@@ -64,9 +64,6 @@ void set_nyx_default_configuration()
int create_config_entry()
{
if (!sd_mount())
return 1;
char lbuf[64];
FIL fp;
bool mainIniFound = false;
@@ -184,7 +181,6 @@ int create_config_entry()
}
f_close(&fp);
sd_unmount();
return 0;
}