Adds toggle for build info on N64 logo screen

This commit is contained in:
Ada 2022-05-01 21:23:13 +01:00
commit 2108f9fa6c
3 changed files with 35 additions and 30 deletions

View file

@ -579,6 +579,7 @@ namespace SohImGui {
ImGui::Separator(); ImGui::Separator();
EnhancementCheckbox("Debug Mode", "gDebugEnabled"); EnhancementCheckbox("Debug Mode", "gDebugEnabled");
EnhancementCheckbox("Show Build Info on Title Screen", "gShowTitleInfo");
ImGui::EndMenu(); ImGui::EndMenu();
} }

View file

@ -29,6 +29,7 @@ void BootCommands_Init()
CVar_RegisterS32("gUniformLR", 1); CVar_RegisterS32("gUniformLR", 1);
CVar_RegisterS32("gNewDrops", 0); CVar_RegisterS32("gNewDrops", 0);
CVar_RegisterS32("gVisualAgony", 0); CVar_RegisterS32("gVisualAgony", 0);
CVar_RegisterS32("gShowExtraTitleInfo", 0);
} }
//void BootCommands_ParseBootArgs(char* str) //void BootCommands_ParseBootArgs(char* str)

View file

@ -11,12 +11,14 @@
#include "textures/nintendo_rogo_static/nintendo_rogo_static.h" #include "textures/nintendo_rogo_static/nintendo_rogo_static.h"
#include <soh/Enhancements/bootcommands.h> #include <soh/Enhancements/bootcommands.h>
#include "GameVersions.h" #include "GameVersions.h"
#include "Cvar.h"
const char* GetGameVersionString(); const char* GetGameVersionString();
char* quote; char* quote;
void Title_PrintBuildInfo(Gfx** gfxp) { void Title_PrintBuildInfo(Gfx** gfxp) {
if (CVar_GetS32("gShowTitleInfo",0)!=0) {
Gfx* g; Gfx* g;
//GfxPrint* printer; //GfxPrint* printer;
GfxPrint printer; GfxPrint printer;
@ -31,11 +33,11 @@ void Title_PrintBuildInfo(Gfx** gfxp) {
GfxPrint_SetColor(&printer, 255, 155, 255, 255); GfxPrint_SetColor(&printer, 255, 155, 255, 255);
GfxPrint_SetPos(&printer, 12, 20); GfxPrint_SetPos(&printer, 12, 20);
#ifdef _MSC_VER #ifdef _MSC_VER
GfxPrint_Printf(&printer, "MSVC SHIP"); GfxPrint_Printf(&printer, "MSVC SHIP");
#else #else
GfxPrint_Printf(printer, "GCC SHIP"); GfxPrint_Printf(printer, "GCC SHIP");
#endif #endif
GfxPrint_SetPos(&printer, 5, 4); GfxPrint_SetPos(&printer, 5, 4);
GfxPrint_Printf(&printer, "Game Version: %s", gameVersionStr); GfxPrint_Printf(&printer, "Game Version: %s", gameVersionStr);
@ -52,6 +54,7 @@ void Title_PrintBuildInfo(Gfx** gfxp) {
g = GfxPrint_Close(&printer); g = GfxPrint_Close(&printer);
GfxPrint_Destroy(&printer); GfxPrint_Destroy(&printer);
*gfxp = g; *gfxp = g;
}
} }
const char* quotes[11] = { const char* quotes[11] = {