diff --git a/changelog.md b/changelog.md index a14b462..040754e 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,7 @@ - Fixed not being able to input decimal places in the transition speed customizer UI - Fixed crash when pressing the info button on the label format page +- **Added support for Intel macOS** # 1.7.5-beta.2 diff --git a/mod.json b/mod.json index 067300b..77a76de 100644 --- a/mod.json +++ b/mod.json @@ -1,5 +1,5 @@ { - "geode": "4.0.0-alpha.1", + "geode": "4.0.0-beta.1", "version": "v1.7.5-beta.3", "gd": { "win": "2.2074", diff --git a/src/Utils/OffsetManager.cpp b/src/Utils/OffsetManager.cpp index 41dd74f..d4bf6bf 100644 --- a/src/Utils/OffsetManager.cpp +++ b/src/Utils/OffsetManager.cpp @@ -25,16 +25,12 @@ unsigned int OffsetManager::offsetForType(PatchType type) GEODE_INTEL_MAC(return 0x7ff4d8); GEODE_ARM_MAC(return ); GEODE_IOS(return ); - - #endif - #if GEODE_COMP_GD_VERSION == 22073 + #elif GEODE_COMP_GD_VERSION == 22073 GEODE_WINDOWS(return 0x606f98); - - #endif - #if GEODE_COMP_GD_VERSION == 22060 + #elif GEODE_COMP_GD_VERSION == 22060 GEODE_WINDOWS(return 0x5ec6d0); GEODE_ANDROID32(return 0x46ce38 - 0x10000); @@ -42,9 +38,13 @@ unsigned int OffsetManager::offsetForType(PatchType type) GEODE_INTEL_MAC(return 0x823b00); GEODE_ARM_MAC(return ); GEODE_IOS(return 0x642b60); - - #endif + #else + + static_assert(false, "Patches not updated for this game version"); + + #endif + break; case PatchType::EditorExtension1: @@ -58,15 +58,11 @@ unsigned int OffsetManager::offsetForType(PatchType type) GEODE_INTEL_MAC(return 0x7fe110); GEODE_IOS(return ); - #endif - - #if GEODE_COMP_GD_VERSION == 22073 + #elif GEODE_COMP_GD_VERSION == 22073 GEODE_WINDOWS(return 0x607c30); - #endif - - #if GEODE_COMP_GD_VERSION == 22060 + #elif GEODE_COMP_GD_VERSION == 22060 GEODE_WINDOWS(return 0x5ed33c); GEODE_ANDROID32(return 0x37e678 - 0x10000); @@ -74,6 +70,10 @@ unsigned int OffsetManager::offsetForType(PatchType type) GEODE_INTEL_MAC(return 0x822770); GEODE_IOS(return ); + #else + + static_assert(false, "Patches not updated for this game version"); + #endif break; @@ -88,16 +88,12 @@ unsigned int OffsetManager::offsetForType(PatchType type) GEODE_ANDROID64(return 0x77790c - 0x100000); GEODE_INTEL_MAC(return 0x7fdf34); GEODE_IOS(return ); - - #endif - #if GEODE_COMP_GD_VERSION == 22073 + #elif GEODE_COMP_GD_VERSION == 22073 GEODE_WINDOWS(return 0x607c34); - - #endif - #if GEODE_COMP_GD_VERSION == 22060 + #elif GEODE_COMP_GD_VERSION == 22060 GEODE_WINDOWS(return 0x5ed340); GEODE_ANDROID32(return 0x37ea1c - 0x10000); @@ -105,6 +101,10 @@ unsigned int OffsetManager::offsetForType(PatchType type) GEODE_INTEL_MAC(return 0x82258c); GEODE_IOS(return ); + #else + + static_assert(false, "Patches not updated for this game version"); + #endif break;