Fix hostmigration bug.

This commit is contained in:
momo5502 2016-01-26 22:56:28 +01:00
parent 599d7c692e
commit 5476bc06a2
2 changed files with 6 additions and 0 deletions

View File

@ -17,6 +17,8 @@ namespace Components
info.name = "dlc2_ui_mp"; info.name = "dlc2_ui_mp";
data.push_back(info); data.push_back(info);
data.push_back({ "weapons_mp", 1, 0 });
Game::DB_LoadXAssets(data.data(), data.size(), sync); Game::DB_LoadXAssets(data.data(), data.size(), sync);
#ifdef DEBUG #ifdef DEBUG

View File

@ -181,6 +181,10 @@ namespace Components
Utils::Hook::Set<BYTE>(0x420A6C, 0); Utils::Hook::Set<BYTE>(0x420A6C, 0);
Utils::Hook::Set<char*>(0x420A6E, "xblive_privateserver"); Utils::Hook::Set<char*>(0x420A6E, "xblive_privateserver");
// Remove migration shutdown, it causes crashes and will be destroyed when erroring anyways
Utils::Hook::Nop(0x5A8E1C, 12);
Utils::Hook::Nop(0x5A8E33, 11);
// Enable XP Bar // Enable XP Bar
Utils::Hook(0x62A2A7, Party::UIDvarIntStub, HOOK_CALL).Install()->Quick(); Utils::Hook(0x62A2A7, Party::UIDvarIntStub, HOOK_CALL).Install()->Quick();