diff --git a/loader/src/hooks/DynamicCastFix.cpp b/loader/src/hooks/DynamicCastFix.cpp index 2c325c33..d493bf93 100644 --- a/loader/src/hooks/DynamicCastFix.cpp +++ b/loader/src/hooks/DynamicCastFix.cpp @@ -8,6 +8,10 @@ $execute { // this is needed because the transitions in cocos uses dynamic cast to check // layers, which fail on user layers due to typeinfo not matching + #if defined(GEODE_IS_MAC) && GEODE_COMP_GD_VERSION != 22074 + #error "Unsupported version for macOS dynamic cast fix, please update the addresses" + #endif + #if defined(GEODE_IS_INTEL_MAC) void* dynamicCastAddr = reinterpret_cast(base::get() + 0x7ba1d8); (void) Mod::get()->hook(dynamicCastAddr, &cast::typeinfoCastInternal, "__dynamic_cast");