From a3d8967dbb3a7cabd291acddfdcdc47aecc3a4f3 Mon Sep 17 00:00:00 2001 From: Robin Jones Date: Wed, 23 Oct 2024 14:47:08 +0100 Subject: [PATCH] Merge fix And optimization for "format_boolean_type" --- src/menu/rom_info.c | 2 +- src/menu/views/load_rom.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/menu/rom_info.c b/src/menu/rom_info.c index 9fd9cd06..42beb1f3 100644 --- a/src/menu/rom_info.c +++ b/src/menu/rom_info.c @@ -846,7 +846,7 @@ static rom_err_t save_override (path_t *path, const char *id, int value, int def mini_t *ini = mini_try_load(path_get(rom_info_path)); if (!ini) { - path_free(overrides_path); + path_free(rom_info_path); return ROM_ERR_SAVE_IO; } diff --git a/src/menu/views/load_rom.c b/src/menu/views/load_rom.c index de131264..8ddf35b9 100644 --- a/src/menu/views/load_rom.c +++ b/src/menu/views/load_rom.c @@ -122,7 +122,7 @@ static const char *format_cic_type (rom_cic_type_t cic_type) { } } -static const char *format_boolean_type (bool bool_value) { +static inline const char *format_boolean_type (bool bool_value) { return bool_value ? "On" : "Off"; }