Add platform and arch in console output

This commit is contained in:
def 2020-08-31 12:05:50 +02:00
parent 92616f1a55
commit 2b0e13db53

View file

@ -710,7 +710,7 @@ void CGameConsole::OnRender()
TextRender()->Text(0, 10.0f, FontSize / 2.f, FontSize, aBuf, -1.0f);
// render version
str_format(aBuf, sizeof(aBuf), "v%s", GAME_VERSION);
str_copy(aBuf, "v" GAME_VERSION " on " CONF_PLATFORM_STRING " " CONF_ARCH_STRING, sizeof(aBuf));
float Width = TextRender()->TextWidth(0, FontSize, aBuf, -1, -1.0f);
TextRender()->Text(0, Screen.w-Width-10.0f, FontSize / 2.f, FontSize, aBuf, -1.0f);
}