Change the branch criteria to starting with `develop`

This commit is contained in:
Pepe20129 2024-04-12 19:40:41 +02:00
parent 9efaf28142
commit e27cc0aac9
2 changed files with 4 additions and 2 deletions

View File

@ -437,7 +437,8 @@ void DrawGameplayStatsHeader() {
ImGui::BeginTable("gameplayStatsHeader", 1, ImGuiTableFlags_BordersOuter);
ImGui::TableSetupColumn("stat", ImGuiTableColumnFlags_WidthStretch);
GameplayStatsRow("Build Version:", (char*)gBuildVersion);
if (((char*)gGitBranch) != "develop") {
//if branch doesn't start with "develop"
if (strncmp((char*)gGitBranch, "develop", strlen("develop")) != 0) {
GameplayStatsRow("Git Branch:", (char*)gGitBranch);
}
if (CVarGetInteger("gGameplayStats.ShowDebugInfo", 0)) {

View File

@ -30,7 +30,8 @@ void Title_PrintBuildInfo(Gfx** gfxp) {
GfxPrint_Open(&printer, g);
GfxPrint_SetColor(&printer, 131, 154, 255, 255);
bool showGitBranch = ((char*)gGitBranch) != "develop";
//if branch doesn't start with "develop"
bool showGitBranch = strncmp((char*)gGitBranch, "develop", strlen("develop")) != 0;
bool showGitCommit = CVarGetInteger("gDebugEnabled", 0);
GfxPrint_SetPos(&printer, 1, showGitBranch ? (showGitCommit ? 23 : 24) : (showGitCommit ? 24 : 25));