Make title-version show git info for dev builds

develop
lethosor 2016-01-01 11:50:11 -05:00
parent 51690b4ba2
commit 9e020bb8c1
1 changed files with 5 additions and 0 deletions

@ -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);
}
}
};