From 0533df899cf7fc912fb750ab7a3f21866bbe5a0b Mon Sep 17 00:00:00 2001 From: Robin Jones Date: Sun, 17 Mar 2024 19:17:46 +0000 Subject: [PATCH] Change patch entry type --- src/menu/menu_state.h | 2 +- src/menu/views/browser.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/menu/menu_state.h b/src/menu/menu_state.h index a704153a..42806363 100644 --- a/src/menu/menu_state.h +++ b/src/menu/menu_state.h @@ -50,7 +50,7 @@ typedef enum { ENTRY_TYPE_DIR, ENTRY_TYPE_ROM, ENTRY_TYPE_DISK, - ENTRY_TYPE_PATCH, + ENTRY_TYPE_ROM_PATCH, ENTRY_TYPE_EMULATOR, ENTRY_TYPE_SAVE, ENTRY_TYPE_IMAGE, diff --git a/src/menu/views/browser.c b/src/menu/views/browser.c index ae56fb82..b06819c6 100644 --- a/src/menu/views/browser.c +++ b/src/menu/views/browser.c @@ -36,9 +36,9 @@ static int compare_entry (const void *pa, const void *pb) { return -1; } else if (b->type == ENTRY_TYPE_DISK) { return 1; - } else if (a->type == ENTRY_TYPE_PATCH) { + } else if (a->type == ENTRY_TYPE_ROM_PATCH) { return -1; - } else if (b->type == ENTRY_TYPE_PATCH) { + } else if (b->type == ENTRY_TYPE_ROM_PATCH) { return 1; } else if (a->type == ENTRY_TYPE_EMULATOR) { return -1; @@ -115,7 +115,7 @@ static bool load_directory (menu_t *menu) { } else if (file_has_extensions(info.fname, disk_extensions)) { entry->type = ENTRY_TYPE_DISK; } else if (file_has_extensions(info.fname, patch_extensions)) { - entry->type = ENTRY_TYPE_PATCH; + entry->type = ENTRY_TYPE_ROM_PATCH; }else if (file_has_extensions(info.fname, emulator_extensions)) { entry->type = ENTRY_TYPE_EMULATOR; } else if (file_has_extensions(info.fname, save_extensions)) { @@ -308,7 +308,7 @@ static void process (menu_t *menu) { case ENTRY_TYPE_EMULATOR: menu->next_mode = MENU_MODE_LOAD_EMULATOR; break; - case ENTRY_TYPE_PATCH: + case ENTRY_TYPE_ROM_PATCH: menu->next_mode = MENU_MODE_LOAD_ROM_PATCH; break; case ENTRY_TYPE_IMAGE: @@ -353,7 +353,7 @@ static void draw (menu_t *menu, surface_t *d) { case ENTRY_TYPE_DIR: action = "A: Enter"; break; case ENTRY_TYPE_ROM: action = "A: Load"; break; case ENTRY_TYPE_DISK: action = "A: Load"; break; - case ENTRY_TYPE_PATCH: action = "A: Load"; break; + case ENTRY_TYPE_ROM_PATCH: action = "A: Load"; break; case ENTRY_TYPE_IMAGE: action = "A: Show"; break; case ENTRY_TYPE_TEXT: action = "A: View"; break; case ENTRY_TYPE_MUSIC: action = "A: Play"; break;