changelog

This commit is contained in:
sr0 2016-01-08 00:59:59 +01:00
parent 497e223371
commit b00f191c7d

View File

@ -12,12 +12,14 @@ namespace Components
News::News()
{
News::Motd = Utils::WebIO("IW4x", "http://localhost/iw4/motd.txt").Get();
if (!News::Motd.size())
{
News::Motd = "Welcome to ReactIW4x Multiplayer!";
}
Localization::Set("MPUI_CHANGELOG_TEXT", Utils::WebIO("IW4x", "http://localhost/iw4/changelog.txt").Get().data());
// Patch motd setting
Utils::Hook(0x60BF19, News::GetMotd, HOOK_CALL).Install()->Quick();
}