From 156f713e1985bb8b1713c35450f478d24f62c793 Mon Sep 17 00:00:00 2001 From: Alto1772 <56553686+Alto1772@users.noreply.github.com> Date: Tue, 22 Nov 2022 16:42:01 +0800 Subject: [PATCH] [Enhancement] Add option to hide build details on boot screen (#1948) --- soh/soh/GameMenuBar.cpp | 2 ++ soh/src/overlays/gamestates/ovl_title/z_title.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/soh/soh/GameMenuBar.cpp b/soh/soh/GameMenuBar.cpp index 8977c9030..441b0bf87 100644 --- a/soh/soh/GameMenuBar.cpp +++ b/soh/soh/GameMenuBar.cpp @@ -1539,6 +1539,8 @@ namespace GameMenuBar { ImGui::Text("Loading :"); UIWidgets::EnhancementCombobox("gSaveFileID", FastFileSelect, 5, 0); }; + UIWidgets::PaddedEnhancementCheckbox("Hide Build Info", "gHideBuildInfo", true, false); + UIWidgets::Tooltip("Hides the game version and build details in the boot logo start screen"); UIWidgets::PaddedEnhancementCheckbox("Better Debug Warp Screen", "gBetterDebugWarpScreen", true, false); UIWidgets::Tooltip("Optimized debug warp screen, with the added ability to chose entrances and time of day"); UIWidgets::PaddedSeparator(); diff --git a/soh/src/overlays/gamestates/ovl_title/z_title.c b/soh/src/overlays/gamestates/ovl_title/z_title.c index a0a8fdc59..296cc904e 100644 --- a/soh/src/overlays/gamestates/ovl_title/z_title.c +++ b/soh/src/overlays/gamestates/ovl_title/z_title.c @@ -246,7 +246,7 @@ void Title_Main(GameState* thisx) { Title_Calc(this); Title_Draw(this); - if (1) { + if (!CVar_GetS32("gHideBuildInfo", 0)) { Gfx* gfx = POLY_OPA_DISP; s32 pad;