From 375c77fd04d552ad663cdfd2264f7b1adf5ab8a2 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sat, 4 Mar 2023 11:45:55 +0100 Subject: [PATCH] Update demonware --- src/client/component/demonware.cpp | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/src/client/component/demonware.cpp b/src/client/component/demonware.cpp index cecc28b8..d31f85ec 100644 --- a/src/client/component/demonware.cpp +++ b/src/client/component/demonware.cpp @@ -476,28 +476,27 @@ namespace demonware { server_thread = utils::thread::create_named_thread("Demonware", server_main); + utils::hook::set(game::select(0x14293DC69, 0x1407D5879), 0x0); // CURLOPT_SSL_VERIFYPEER + utils::hook::set(game::select(0x15C293850, 0x1407D5865), 0xAF); // CURLOPT_SSL_VERIFYHOST - utils::hook::set(game::select(0x14293E829, 0x1407D5879), 0x0); // CURLOPT_SSL_VERIFYPEER - utils::hook::set(game::select(0x15F3CCFED, 0x1407D5865), 0xAF); // CURLOPT_SSL_VERIFYHOST - - utils::hook::copy_string(game::select(0x1430B96E0, 0x140EE4C68), "http://prod.umbrella.demonware.net"); + utils::hook::copy_string(game::select(0x1430B8670, 0x140EE4C68), "http://prod.umbrella.demonware.net"); if (game::is_server()) { return; } - utils::hook::copy_string(0x1430B9BE0_g, "http://prod.uno.demonware.net/v1.0"); + utils::hook::copy_string(0x1430B8B70_g, "http://prod.uno.demonware.net/v1.0"); - utils::hook::set(0x1430B9810_g, 0x0); // HTTPS -> HTTP - utils::hook::copy_string(0x1430B93C8_g, "http://%s:%d/auth/"); + utils::hook::set(0x1430B87A0_g, 0x0); // HTTPS -> HTTP + utils::hook::copy_string(0x1430B8358_g, "http://%s:%d/auth/"); - utils::hook::set(0x141EC4B50_g, 0xC3D08948); // Skip publisher file signature stuff - utils::hook::call(0x141EC458C_g, get_ffotd_name); // Return unlocalized ffotd name - utils::hook::set(0x141F04550_g, 0xC300000001B8); // Kill LPC_File_SafeWrite - utils::hook::set(0x141F03180_g, 0xC300000001B8); // Kill LPC_DeleteStale + utils::hook::set(0x141EC4AC0_g, 0xC3D08948); // Skip publisher file signature stuff + utils::hook::call(0x141EC44FC_g, get_ffotd_name); // Return unlocalized ffotd name + utils::hook::set(0x141F04500_g, 0xC300000001B8); // Kill LPC_File_SafeWrite + utils::hook::set(0x141F03130_g, 0xC300000001B8); // Kill LPC_DeleteStale - utils::hook::set(0x141E0AAAB_g, 0xEB); // Release un-handled reportReward spamming loop + utils::hook::set(0x141E0AA1B_g, 0xEB); // Release un-handled reportReward spamming loop } void pre_destroy() override @@ -516,4 +515,4 @@ namespace demonware }; } -REGISTER_COMPONENT(demonware::component) +REGISTER_COMPONENT_WORKING(demonware::component)