Skip to content

Commit

Permalink
Make title-version show git info for dev builds
Browse files Browse the repository at this point in the history
  • Loading branch information
lethosor committed Jan 1, 2016
1 parent 51690b4 commit 9e020bb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/title-version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ struct title_version_hook : df::viewscreen_titlest {
int x = 0, y = 0;
OutputString(COLOR_WHITE, x, y, string("DFHack ") + DFHACK_VERSION);
if (!DFHACK_IS_RELEASE)
{
OutputString(COLOR_WHITE, x, y, " (dev)");
x = 0; y = 1;
OutputString(COLOR_WHITE, x, y, "Git: ");
OutputString(COLOR_WHITE, x, y, DFHACK_GIT_DESCRIPTION);
}
}
};

Expand Down

0 comments on commit 9e020bb

Please sign in to comment.