diff --git a/include/filemenu.h b/include/filemenu.h index 94f37d5134..81e24af7b9 100644 --- a/include/filemenu.h +++ b/include/filemenu.h @@ -27,11 +27,11 @@ enum { FM_MAIN_SELECT_FILE = 0, // choose which file to load FM_MAIN_SELECT_DELETE, // choose which file to delete #if !VERSION_PAL - FM_MAIN_DUMMY_LANG_SELECT, // non-PAL versions have an unimplemented dummy language select + FM_MAIN_SELECT_LANG_DUMMY, // non-PAL versions have an unimplemented dummy language select #endif FM_MAIN_SELECT_COPY_FROM, FM_MAIN_SELECT_COPY_TO, - FM_MAIN_PAL_LANG_SELECT, + FM_MAIN_SELECT_LANG_PAL, // states for confirm submenu FM_CONFIRM_DELETE = 0, diff --git a/src/filemenu/filemenu_common.c b/src/filemenu/filemenu_common.c index 2ff913fcf7..8d48a3d12e 100644 --- a/src/filemenu/filemenu_common.c +++ b/src/filemenu/filemenu_common.c @@ -1068,12 +1068,12 @@ void filemenu_init(s32 mode) { } update_window_hierarchy(WIN_PAUSE_DECRIPTION, 64); } else { - filemenu_currentMenu = FM_MAIN_PAL_LANG_SELECT; - filemenu_set_selected(filemenu_menus[FM_MAIN_PAL_LANG_SELECT], 0, gCurrentLanguage); + filemenu_currentMenu = FM_MAIN_SELECT_LANG_PAL; + filemenu_set_selected(filemenu_menus[FM_MAIN_SELECT_LANG_PAL], 0, gCurrentLanguage); panelIt = filemenu_menus; for (i = 0; i < ARRAY_COUNT(filemenu_menus); i++, panelIt++) { - if (i == FM_MAIN_PAL_LANG_SELECT) { + if (i == FM_MAIN_SELECT_LANG_PAL) { if ((*panelIt)->fpInit != NULL) { (*panelIt)->fpInit((*panelIt)); } @@ -1088,7 +1088,7 @@ void filemenu_init(s32 mode) { if (mode == 0) { menu->state = FM_MAIN_SELECT_FILE; } else { - menu->state = FM_MAIN_DUMMY_LANG_SELECT; + menu->state = FM_MAIN_SELECT_LANG_DUMMY; } if (menu->state == FM_MAIN_SELECT_FILE) { diff --git a/src/filemenu/filemenu_info.c b/src/filemenu/filemenu_info.c index 5346380a6b..035d90b3da 100644 --- a/src/filemenu/filemenu_info.c +++ b/src/filemenu/filemenu_info.c @@ -173,8 +173,8 @@ void filemenu_info_handle_input(MenuPanel* menu) { filemenu_set_selected(menu, 1, 2); break; #if !VERSION_PAL - case FM_MAIN_DUMMY_LANG_SELECT: - menu->state = FM_MAIN_DUMMY_LANG_SELECT; + case FM_MAIN_SELECT_LANG_DUMMY: + menu->state = FM_MAIN_SELECT_LANG_DUMMY; filemenu_set_selected(menu, 1, 2); break; #endif diff --git a/src/filemenu/filemenu_main.c b/src/filemenu/filemenu_main.c index 2ac7cee0eb..4ce11ea078 100644 --- a/src/filemenu/filemenu_main.c +++ b/src/filemenu/filemenu_main.c @@ -371,7 +371,7 @@ void filemenu_draw_contents_title( yOffset = 4; break; #if !VERSION_PAL - case FM_MAIN_DUMMY_LANG_SELECT: + case FM_MAIN_SELECT_LANG_DUMMY: default: msgIdx = FILE_MESSAGE_SELECT_FILE_TO_SAVE; xOffset = 10; @@ -427,7 +427,7 @@ void filemenu_draw_contents_option_left( } filemenu_draw_message(filemenu_get_menu_message(FILE_MESSAGE_DELETE_FILE), baseX + offset + OFFSET_WIDTH, baseY + 2, 255, 0, 1); #else - if (menu->state != FM_MAIN_DUMMY_LANG_SELECT) { + if (menu->state != FM_MAIN_SELECT_LANG_DUMMY) { if (menu->col == 0 && menu->row == 2) { filemenu_set_cursor_goal_pos(WIN_FILES_OPTION_LEFT, baseX, baseY + 8); } @@ -483,7 +483,7 @@ void filemenu_draw_contents_option_center( switch (menu->state) { case FM_MAIN_SELECT_DELETE: - case FM_MAIN_DUMMY_LANG_SELECT: + case FM_MAIN_SELECT_LANG_DUMMY: case FM_MAIN_SELECT_COPY_FROM: case FM_MAIN_SELECT_COPY_TO: msgIdx = FILE_MESSAGE_CANCEL; @@ -761,7 +761,7 @@ void filemenu_main_init(MenuPanel* menu) { gWindows[WIN_FILES_TITLE].width = 162; gWindows[WIN_FILES_TITLE].height = 25; #else - if (menu->state == FM_MAIN_DUMMY_LANG_SELECT) { + if (menu->state == FM_MAIN_SELECT_LANG_DUMMY) { gWindows[WIN_FILES_TITLE].pos.y = 1; gWindows[WIN_FILES_TITLE].width = 211; gWindows[WIN_FILES_TITLE].height = 25; @@ -848,7 +848,7 @@ void filemenu_main_handle_input(MenuPanel* menu) { menu->col = 1; } break; - case FM_MAIN_DUMMY_LANG_SELECT: + case FM_MAIN_SELECT_LANG_DUMMY: // force selection to column 0 when navigating up from bottom row if (menu->col == 1 && (u8) menu->row < 2) { menu->col = 0; @@ -1120,7 +1120,7 @@ void filemenu_main_handle_input(MenuPanel* menu) { } } break; - case FM_MAIN_DUMMY_LANG_SELECT: + case FM_MAIN_SELECT_LANG_DUMMY: if (menu->selected == FM_MAIN_OPT_CANCEL) { // selected "Cancel" button sfx_play_sound(SOUND_MENU_NEXT); @@ -1169,7 +1169,7 @@ void filemenu_main_handle_input(MenuPanel* menu) { case FM_MAIN_SELECT_DELETE: filemenu_set_selected(menu, 1, 2); break; - case FM_MAIN_DUMMY_LANG_SELECT: + case FM_MAIN_SELECT_LANG_DUMMY: filemenu_set_selected(menu, 1, 2); break; case FM_MAIN_SELECT_COPY_FROM: @@ -1218,7 +1218,7 @@ void filemenu_main_handle_input(MenuPanel* menu) { filemenu_set_selected(menu, (filemenu_loadedFileIdx % 2) * 2, filemenu_loadedFileIdx / 2); sfx_play_sound(SOUND_MENU_BACK); break; - case FM_MAIN_DUMMY_LANG_SELECT: + case FM_MAIN_SELECT_LANG_DUMMY: sfx_play_sound(SOUND_MENU_BACK); set_game_mode(GAME_MODE_END_LANGUAGE_SELECT); break;