mirror of
https://github.com/Polprzewodnikowy/N64FlashcartMenu.git
synced 2024-11-22 02:29:19 +01:00
Cleaned up settings path
This commit is contained in:
parent
0fd8494007
commit
3f08dfb6fd
@ -5,7 +5,7 @@
|
|||||||
#include "utils/fs.h"
|
#include "utils/fs.h"
|
||||||
|
|
||||||
|
|
||||||
#define SETTINGS_FILE_PATH "/config.ini"
|
#define SETTINGS_FILE_PATH "sd:/config.ini"
|
||||||
|
|
||||||
|
|
||||||
static settings_t init = {
|
static settings_t init = {
|
||||||
@ -20,7 +20,7 @@ void settings_load (settings_t *settings) {
|
|||||||
settings_save(&init);
|
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->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);
|
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) {
|
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", "pal60", settings->pal60);
|
||||||
mini_set_bool(ini, "menu", "show_hidden_files", settings->show_hidden_files);
|
mini_set_bool(ini, "menu", "show_hidden_files", settings->show_hidden_files);
|
||||||
|
Loading…
Reference in New Issue
Block a user