changelog
This commit is contained in:
parent
497e223371
commit
b00f191c7d
@ -12,12 +12,14 @@ namespace Components
|
|||||||
News::News()
|
News::News()
|
||||||
{
|
{
|
||||||
News::Motd = Utils::WebIO("IW4x", "http://localhost/iw4/motd.txt").Get();
|
News::Motd = Utils::WebIO("IW4x", "http://localhost/iw4/motd.txt").Get();
|
||||||
|
|
||||||
if (!News::Motd.size())
|
if (!News::Motd.size())
|
||||||
{
|
{
|
||||||
News::Motd = "Welcome to ReactIW4x Multiplayer!";
|
News::Motd = "Welcome to ReactIW4x Multiplayer!";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Localization::Set("MPUI_CHANGELOG_TEXT", Utils::WebIO("IW4x", "http://localhost/iw4/changelog.txt").Get().data());
|
||||||
|
|
||||||
// Patch motd setting
|
// Patch motd setting
|
||||||
Utils::Hook(0x60BF19, News::GetMotd, HOOK_CALL).Install()->Quick();
|
Utils::Hook(0x60BF19, News::GetMotd, HOOK_CALL).Install()->Quick();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user