diff --git a/libultraship/libultraship/SohImGuiImpl.cpp b/libultraship/libultraship/SohImGuiImpl.cpp index 1d9927c23..ad350700c 100644 --- a/libultraship/libultraship/SohImGuiImpl.cpp +++ b/libultraship/libultraship/SohImGuiImpl.cpp @@ -579,6 +579,7 @@ namespace SohImGui { ImGui::Separator(); EnhancementCheckbox("Debug Mode", "gDebugEnabled"); + EnhancementCheckbox("Show Build Info on Title Screen", "gShowTitleInfo"); ImGui::EndMenu(); } diff --git a/soh/soh/Enhancements/bootcommands.c b/soh/soh/Enhancements/bootcommands.c index da4276f77..21f3340cb 100644 --- a/soh/soh/Enhancements/bootcommands.c +++ b/soh/soh/Enhancements/bootcommands.c @@ -29,6 +29,7 @@ void BootCommands_Init() CVar_RegisterS32("gUniformLR", 1); CVar_RegisterS32("gNewDrops", 0); CVar_RegisterS32("gVisualAgony", 0); + CVar_RegisterS32("gShowExtraTitleInfo", 0); } //void BootCommands_ParseBootArgs(char* str) diff --git a/soh/src/overlays/gamestates/ovl_title/z_title.c b/soh/src/overlays/gamestates/ovl_title/z_title.c index 380720dd1..d08473a11 100644 --- a/soh/src/overlays/gamestates/ovl_title/z_title.c +++ b/soh/src/overlays/gamestates/ovl_title/z_title.c @@ -11,47 +11,50 @@ #include "textures/nintendo_rogo_static/nintendo_rogo_static.h" #include #include "GameVersions.h" +#include "Cvar.h" const char* GetGameVersionString(); char* quote; void Title_PrintBuildInfo(Gfx** gfxp) { - Gfx* g; - //GfxPrint* printer; - GfxPrint printer; + if (CVar_GetS32("gShowTitleInfo",0)!=0) { + Gfx* g; + //GfxPrint* printer; + GfxPrint printer; - const char* gameVersionStr = GetGameVersionString(); + const char* gameVersionStr = GetGameVersionString(); - g = *gfxp; - g = func_8009411C(g); - //printer = alloca(sizeof(GfxPrint)); - GfxPrint_Init(&printer); - GfxPrint_Open(&printer, g); - GfxPrint_SetColor(&printer, 255, 155, 255, 255); - GfxPrint_SetPos(&printer, 12, 20); + g = *gfxp; + g = func_8009411C(g); + //printer = alloca(sizeof(GfxPrint)); + GfxPrint_Init(&printer); + GfxPrint_Open(&printer, g); + GfxPrint_SetColor(&printer, 255, 155, 255, 255); + GfxPrint_SetPos(&printer, 12, 20); -#ifdef _MSC_VER - GfxPrint_Printf(&printer, "MSVC SHIP"); -#else - GfxPrint_Printf(printer, "GCC SHIP"); -#endif + #ifdef _MSC_VER + GfxPrint_Printf(&printer, "MSVC SHIP"); + #else + GfxPrint_Printf(printer, "GCC SHIP"); + #endif - GfxPrint_SetPos(&printer, 5, 4); - GfxPrint_Printf(&printer, "Game Version: %s", gameVersionStr); + GfxPrint_SetPos(&printer, 5, 4); + GfxPrint_Printf(&printer, "Game Version: %s", gameVersionStr); - GfxPrint_SetColor(&printer, 255, 255, 255, 255); - GfxPrint_SetPos(&printer, 2, 22); - GfxPrint_Printf(&printer, quote); - GfxPrint_SetPos(&printer, 1, 25); - GfxPrint_Printf(&printer, "Build Date:%s", gBuildDate); - GfxPrint_SetPos(&printer, 3, 26); - GfxPrint_Printf(&printer, "%s", gBuildTeam); - GfxPrint_SetPos(&printer, 3, 28); - GfxPrint_Printf(&printer, "Release Version: %s", gBuildVersion); - g = GfxPrint_Close(&printer); - GfxPrint_Destroy(&printer); - *gfxp = g; + GfxPrint_SetColor(&printer, 255, 255, 255, 255); + GfxPrint_SetPos(&printer, 2, 22); + GfxPrint_Printf(&printer, quote); + GfxPrint_SetPos(&printer, 1, 25); + GfxPrint_Printf(&printer, "Build Date:%s", gBuildDate); + GfxPrint_SetPos(&printer, 3, 26); + GfxPrint_Printf(&printer, "%s", gBuildTeam); + GfxPrint_SetPos(&printer, 3, 28); + GfxPrint_Printf(&printer, "Release Version: %s", gBuildVersion); + g = GfxPrint_Close(&printer); + GfxPrint_Destroy(&printer); + *gfxp = g; + } } const char* quotes[11] = {