From 939ca8256de2419b94f1ced88bdc547226043f67 Mon Sep 17 00:00:00 2001 From: Agent X <44549182+AgentXLP@users.noreply.github.com> Date: Tue, 25 Jun 2024 15:56:31 -0400 Subject: [PATCH] Small fix --- src/pc/djui/djui_panel_host_save.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pc/djui/djui_panel_host_save.c b/src/pc/djui/djui_panel_host_save.c index 181c5d92..364f5773 100644 --- a/src/pc/djui/djui_panel_host_save.c +++ b/src/pc/djui/djui_panel_host_save.c @@ -11,7 +11,7 @@ static struct DjuiBase* sSaveButtonCaller = NULL; static struct DjuiButton* sSaveButtons[NUM_SAVE_FILES] = { NULL }; static s32 sButtonTag = 0; -static char* sSaveLetters[] = { "A", "B", "C", "D" }; +static char* sSaveLetters[NUM_SAVE_FILES] = { "A", "B", "C", "D" }; static void djui_panel_host_save_update_button(struct DjuiButton* button, int slot); @@ -23,6 +23,9 @@ static void djui_panel_host_save_save_name_change(UNUSED struct DjuiBase* caller } static bool djui_panel_edit_back(UNUSED struct DjuiBase* caller) { + if (configSaveNames[sButtonTag][0] == '\0') { + snprintf(configSaveNames[sButtonTag], MAX_SAVE_NAME_STRING, "SM64"); + } djui_panel_host_save_update_button(sSaveButtons[sButtonTag], sButtonTag); return false; }