From 11f5beb4ed580f74bf8a5fe26e5515b10b83163e Mon Sep 17 00:00:00 2001 From: Federico Cecchetto Date: Wed, 18 May 2022 14:16:58 +0200 Subject: [PATCH] Fix starting matches --- src/client/component/demonware.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/client/component/demonware.cpp b/src/client/component/demonware.cpp index 67e8e6b2..cabe4d69 100644 --- a/src/client/component/demonware.cpp +++ b/src/client/component/demonware.cpp @@ -508,6 +508,12 @@ namespace demonware } } } + + void request_start_match_stub() + { + const auto* args = "StartServer"; + utils::hook::invoke(0x1E35B0_b, 0, &args); + } } class component final : public component_interface @@ -616,6 +622,13 @@ namespace demonware utils::hook::set(0x47A6D0_b, 0xC301B0); // Remove update failed popup utils::hook::set(0x47B2B0_b, 0xC301B0); + + // xpartygo -> just start the match + utils::hook::jump(0x355B80_b, request_start_match_stub, true); + + utils::hook::set(0x396AD0_b, 0xC301B0); // DB_IsZoneLoaded("ffotd") + utils::hook::set(0x4DD600_b, 0xC300B0); // dont use ffotd + utils::hook::set(0x4DD5B0_b, 0xC300B0); // dont dl ffotd } void pre_destroy() override