Change the branch criteria to starting with `develop`
This commit is contained in:
parent
9efaf28142
commit
e27cc0aac9
|
@ -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)) {
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue