From 35b35c9212734ec0732b5f01762a5293d908d663 Mon Sep 17 00:00:00 2001 From: Silent Date: Tue, 8 Jun 2021 14:16:27 +0200 Subject: [PATCH] Hide "Load" from the save state UI legend in Hardcore mode --- src/frontend-common/save_state_selector_ui.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/frontend-common/save_state_selector_ui.cpp b/src/frontend-common/save_state_selector_ui.cpp index 48544acff..3260fa9b5 100644 --- a/src/frontend-common/save_state_selector_ui.cpp +++ b/src/frontend-common/save_state_selector_ui.cpp @@ -278,12 +278,16 @@ void SaveStateSelectorUI::Draw() ImGui::SetCursorPosX(padding); ImGui::BeginTable("table", 2); + const bool hide_load_button = m_host_interface->IsCheevosChallengeModeActive(); ImGui::TableNextColumn(); - ImGui::TextUnformatted(m_load_legend.c_str()); + ImGui::TextUnformatted(!hide_load_button ? m_load_legend.c_str() : m_save_legend.c_str()); ImGui::TableNextColumn(); ImGui::TextUnformatted(m_prev_legend.c_str()); ImGui::TableNextColumn(); - ImGui::TextUnformatted(m_save_legend.c_str()); + if (!hide_load_button) + { + ImGui::TextUnformatted(m_save_legend.c_str()); + } ImGui::TableNextColumn(); ImGui::TextUnformatted(m_next_legend.c_str());