From d23c6f0ac5129ffcac02f3a92aab05e7f460309b Mon Sep 17 00:00:00 2001 From: Agent X <44549182+AgentXLP@users.noreply.github.com> Date: Sun, 9 Jun 2024 09:16:09 -0400 Subject: [PATCH] Fix save file names --- src/pc/djui/djui_panel_host.c | 2 +- src/pc/djui/djui_panel_host_save.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pc/djui/djui_panel_host.c b/src/pc/djui/djui_panel_host.c index e66ef83c..900893ac 100644 --- a/src/pc/djui/djui_panel_host.c +++ b/src/pc/djui/djui_panel_host.c @@ -174,7 +174,7 @@ void djui_panel_host_create(struct DjuiBase* caller) { djui_text_set_drop_shadow(text1, 64, 64, 64, 100); char starString[64] = { 0 }; - snprintf(starString, 64, "%c x%d - %s", '~' + 1, save_file_get_total_star_count(configHostSaveSlot - 1, 0, 24), configSaveNames[configHostSaveSlot]); + snprintf(starString, 64, "%c x%d - %s", '~' + 1, save_file_get_total_star_count(configHostSaveSlot - 1, 0, 24), configSaveNames[configHostSaveSlot - 1]); struct DjuiButton* button1 = djui_button_create(&rect2->base, starString, DJUI_BUTTON_STYLE_NORMAL, djui_panel_host_save_create); djui_base_set_size(&button1->base, 0.45f, 32); djui_base_set_alignment(&button1->base, DJUI_HALIGN_RIGHT, DJUI_VALIGN_TOP); diff --git a/src/pc/djui/djui_panel_host_save.c b/src/pc/djui/djui_panel_host_save.c index 79e4ba9d..181c5d92 100644 --- a/src/pc/djui/djui_panel_host_save.c +++ b/src/pc/djui/djui_panel_host_save.c @@ -109,7 +109,7 @@ void djui_panel_host_save_create(struct DjuiBase* caller) { button2->base.tag = i; djui_base_set_size(&button2->base, 0.19f, 32); djui_base_set_alignment(&button2->base, DJUI_HALIGN_CENTER, DJUI_VALIGN_TOP); - djui_base_set_location(&button2->base, button1->rect->base.width.value + 98, 0); + djui_base_set_location(&button2->base, configDjuiThemeCenter ? 127 : button1->rect->base.width.value + 98, 0); djui_base_set_enabled(&button2->base, gDjuiInMainMenu); struct DjuiButton* button3 = djui_button_create(&rect1->base, DLANG(HOST_SAVE, EDIT), DJUI_BUTTON_STYLE_NORMAL, djui_panel_host_save_edit);