From 5476bc06a28c22fd3c5d7025d1150f2f61a1de93 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Tue, 26 Jan 2016 22:56:28 +0100 Subject: [PATCH] Fix hostmigration bug. --- src/Components/Modules/FastFiles.cpp | 2 ++ src/Components/Modules/Party.cpp | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/Components/Modules/FastFiles.cpp b/src/Components/Modules/FastFiles.cpp index e6d2e463..9197571d 100644 --- a/src/Components/Modules/FastFiles.cpp +++ b/src/Components/Modules/FastFiles.cpp @@ -17,6 +17,8 @@ namespace Components info.name = "dlc2_ui_mp"; data.push_back(info); + data.push_back({ "weapons_mp", 1, 0 }); + Game::DB_LoadXAssets(data.data(), data.size(), sync); #ifdef DEBUG diff --git a/src/Components/Modules/Party.cpp b/src/Components/Modules/Party.cpp index 66bd8ab0..382ea702 100644 --- a/src/Components/Modules/Party.cpp +++ b/src/Components/Modules/Party.cpp @@ -181,6 +181,10 @@ namespace Components Utils::Hook::Set(0x420A6C, 0); Utils::Hook::Set(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 Utils::Hook(0x62A2A7, Party::UIDvarIntStub, HOOK_CALL).Install()->Quick();