From d1cd1148b7a725aa2022652f60f46b8c2fa60a8b Mon Sep 17 00:00:00 2001 From: Cvolton Date: Thu, 14 Nov 2024 18:39:57 +0100 Subject: [PATCH] update serverutils to 2.2074 --- mod.json | 4 ++-- src/utils/ServerUtils.cpp | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/mod.json b/mod.json index 2e49618..2da737b 100644 --- a/mod.json +++ b/mod.json @@ -3,8 +3,8 @@ "version": "v4.2.13", "gd": { "win": "2.2074", - "android": "2.206", - "mac": "2.206" + "android": "2.2074", + "mac": "2.2074" }, "id": "cvolton.betterinfo", "name": "BetterInfo", diff --git a/src/utils/ServerUtils.cpp b/src/utils/ServerUtils.cpp index f8a7445..e45d685 100644 --- a/src/utils/ServerUtils.cpp +++ b/src/utils/ServerUtils.cpp @@ -22,17 +22,17 @@ std::string ServerUtils::getBaseURL() { static_assert(GEODE_COMP_GD_VERSION == 22074, "Unsupported GD version"); originalUrl = (char*)(base::get() + 0x53ea48); #elif defined(GEODE_IS_ARM_MAC) - static_assert(GEODE_COMP_GD_VERSION == 22060, "Unsupported GD version"); - originalUrl = (char*)(base::get() + 0x78bf98); + static_assert(GEODE_COMP_GD_VERSION == 22074, "Unsupported GD version"); + originalUrl = (char*)(base::get() + 0x7749fb); #elif defined(GEODE_IS_INTEL_MAC) - static_assert(GEODE_COMP_GD_VERSION == 22060, "Unsupported GD version"); - originalUrl = (char*)(base::get() + 0x875058); + static_assert(GEODE_COMP_GD_VERSION == 22074, "Unsupported GD version"); + originalUrl = (char*)(base::get() + 0x8516bf); #elif defined(GEODE_IS_ANDROID64) - static_assert(GEODE_COMP_GD_VERSION == 22060, "Unsupported GD version"); - originalUrl = (char*)(base::get() + 0xE8D270); + static_assert(GEODE_COMP_GD_VERSION == 22074, "Unsupported GD version"); + originalUrl = (char*)(base::get() + 0xEA2988); #elif defined(GEODE_IS_ANDROID32) - static_assert(GEODE_COMP_GD_VERSION == 22060, "Unsupported GD version"); - originalUrl = (char*)(base::get() + 0x944A78); + static_assert(GEODE_COMP_GD_VERSION == 22074, "Unsupported GD version"); + originalUrl = (char*)(base::get() + 0x952E9E); #else static_assert(false, "Unsupported platform"); #endif