From df9095c26d8d039a1e3a4114996bbaee7d2ebb5f Mon Sep 17 00:00:00 2001 From: Cvolton Date: Fri, 12 Jul 2024 19:29:24 +0200 Subject: [PATCH] add mac server urls --- src/utils/ServerUtils.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/utils/ServerUtils.cpp b/src/utils/ServerUtils.cpp index ab3706c..49b5e58 100644 --- a/src/utils/ServerUtils.cpp +++ b/src/utils/ServerUtils.cpp @@ -21,9 +21,12 @@ std::string ServerUtils::getBaseURL() { #ifdef GEODE_IS_WINDOWS static_assert(GEODE_COMP_GD_VERSION == 22060, "Unsupported GD version"); originalUrl = (char*)(base::get() + 0x5251d0); - #elif defined(GEODE_IS_MACOS) - static_assert(GEODE_COMP_GD_VERSION == 22000, "Unsupported GD version"); - originalUrl = (char*)(base::get() + 0x83c079); + #elif defined(GEODE_IS_ARM_MAC) + static_assert(GEODE_COMP_GD_VERSION == 22600, "Unsupported GD version"); + originalUrl = (char*)(base::get() + 0x78bf98); + #elif defined(GEODE_IS_INTEL_MAC) + static_assert(GEODE_COMP_GD_VERSION == 22600, "Unsupported GD version"); + originalUrl = (char*)(base::get() + 0x875058); #elif defined(GEODE_IS_ANDROID64) static_assert(GEODE_COMP_GD_VERSION == 22060, "Unsupported GD version"); originalUrl = (char*)(base::get() + 0xE8D270);