From 3f08dfb6fd39ee189128ed94d519bf853c074f76 Mon Sep 17 00:00:00 2001 From: Mateusz Faderewski Date: Fri, 28 Jul 2023 21:23:15 +0200 Subject: [PATCH] Cleaned up settings path --- src/menu/settings.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/menu/settings.c b/src/menu/settings.c index 6a6ccbc4..b8a6b5b4 100644 --- a/src/menu/settings.c +++ b/src/menu/settings.c @@ -5,7 +5,7 @@ #include "utils/fs.h" -#define SETTINGS_FILE_PATH "/config.ini" +#define SETTINGS_FILE_PATH "sd:/config.ini" static settings_t init = { @@ -20,7 +20,7 @@ void settings_load (settings_t *settings) { settings_save(&init); } - mini_t *ini = mini_try_load("sd:/" SETTINGS_FILE_PATH); + mini_t *ini = mini_try_load(SETTINGS_FILE_PATH); settings->pal60 = mini_get_bool(ini, "menu", "pal60", init.pal60); settings->show_hidden_files = mini_get_bool(ini, "menu", "show_hidden_files", init.show_hidden_files); @@ -30,7 +30,7 @@ void settings_load (settings_t *settings) { } void settings_save (settings_t *settings) { - mini_t *ini = mini_create("sd:/" SETTINGS_FILE_PATH); + mini_t *ini = mini_create(SETTINGS_FILE_PATH); mini_set_bool(ini, "menu", "pal60", settings->pal60); mini_set_bool(ini, "menu", "show_hidden_files", settings->show_hidden_files);