Merge branch 'master'
This commit is contained in:
commit
584cade086
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user