Shift version number

This commit is contained in:
momo5502 2016-09-04 12:37:17 +02:00
parent c993a783cf
commit f045863ddc

View File

@ -181,6 +181,14 @@ namespace Components
// version string
Utils::Hook::Set<char*>(0x60BD56, "IW4x (" VERSION ")");
// Shift ui version string to the left (ui_buildlocation)
Utils::Hook::Nop(0x6310A0, 5); // Don't register the initial dvar
Utils::Hook::Nop(0x6310B8, 5); // Don't write the result
Dvar::OnInit([] ()
{
*reinterpret_cast<Game::dvar_t**>(0x62E4B64) = Game::Dvar_RegisterVec2("ui_buildLocation", -80.0f, 15.0f, -10000.0, 10000.0, Game::DVAR_FLAG_READONLY, "Where to draw the build number");
});
// console title
if (ZoneBuilder::IsEnabled())
{