title-version: add prerelease indicator

develop
lethosor 2016-12-30 18:03:28 -05:00
parent 61d081849e
commit cda4e7a300
1 changed files with 6 additions and 1 deletions

@ -36,10 +36,15 @@ struct title_version_hook : df::viewscreen_titlest {
if (!DFHACK_IS_RELEASE)
{
OutputString(COLOR_WHITE, x, y, " (dev)");
x = 0; y = 1;
x = 0; y++;
OutputString(COLOR_WHITE, x, y, "Git: ");
OutputString(COLOR_WHITE, x, y, DFHACK_GIT_DESCRIPTION);
}
if (DFHACK_IS_PRERELEASE)
{
x = 0; y++;
OutputString(COLOR_LIGHTRED, x, y, "Pre-release build");
}
}
};