From 993b3f7d054d72c71391f1854bc82019c466724f Mon Sep 17 00:00:00 2001 From: Robin Jones Date: Sat, 25 Feb 2023 02:36:41 +0000 Subject: [PATCH] Minor fixes and comments --- src/menu/settings.c | 4 ++-- src/menu/settings.h | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/menu/settings.c b/src/menu/settings.c index 84aeacc7..89d9747b 100644 --- a/src/menu/settings.c +++ b/src/menu/settings.c @@ -40,7 +40,7 @@ void settings_load_from_file (settings_t *settings) { //assertf(!conf, "Couldn't parse toml config: %s", error_buffer); // TODO: work out why and handle appropriately. } - fclose(fp); + //fclose(fp); assertf(!fclose(fp), "Couldn't close toml config file"); // TODO: work out why and handle appropriately. fp = NULL; @@ -124,7 +124,7 @@ void settings_load_from_file (settings_t *settings) { wait_ms(10000); } else { - + } toml_free(conf); diff --git a/src/menu/settings.h b/src/menu/settings.h index 49e89711..0dc9fddc 100644 --- a/src/menu/settings.h +++ b/src/menu/settings.h @@ -12,7 +12,7 @@ typedef struct { char *rom_path; char *save_path; - flashcart_save_type_t save_type; //TODO: should this be converted from a string, or use an integer value? + flashcart_save_type_t save_type; //TODO: should this be converted from a string, or only use an integer value? bool save_writeback; // TODO: this is likely SC64 specific. } settings_last_rom_t; @@ -27,6 +27,12 @@ typedef struct { boot_params_t boot_params; } settings_t; +// TODO: +// Menu layout: list vs grid +// Hide extensions +// Hide hidden files and dirs +// colour scheme +// background pic void settings_load_from_file (settings_t *settings); void settings_save (void);