From 9e020bb8c11e3088ba0f923e07516f232771dac9 Mon Sep 17 00:00:00 2001 From: lethosor Date: Fri, 1 Jan 2016 11:50:11 -0500 Subject: [PATCH] Make title-version show git info for dev builds --- plugins/title-version.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/title-version.cpp b/plugins/title-version.cpp index c62568f1e9..78a6942113 100644 --- a/plugins/title-version.cpp +++ b/plugins/title-version.cpp @@ -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); + } } };