Compare commits

..

2 commits

Author SHA1 Message Date
larzie
46ca02ace7
Merge d86830028e into 290e0e0a34 2024-11-13 06:36:20 -05:00
Chloe
290e0e0a34
update dynamic cast addresses 2024-11-13 02:38:00 -07:00

View file

@ -9,10 +9,10 @@ $execute {
// layers, which fail on user layers due to typeinfo not matching
#if defined(GEODE_IS_INTEL_MAC)
void* dynamicCastAddr = reinterpret_cast<void*>(base::get() + 0x7dd5e7);
void* dynamicCastAddr = reinterpret_cast<void*>(base::get() + 0x7ba1d8);
(void) Mod::get()->hook(dynamicCastAddr, &cast::typeinfoCastInternal, "__dynamic_cast");
#elif defined(GEODE_IS_ARM_MAC)
void* dynamicCastAddr = reinterpret_cast<void*>(base::get() + 0x6dfb10);
void* dynamicCastAddr = reinterpret_cast<void*>(base::get() + 0x6c8bcc);
(void)Mod::get()->hook(dynamicCastAddr, &cast::typeinfoCastInternal, "__dynamic_cast");
#elif defined(GEODE_IS_ANDROID)
void* handle = dlopen("libcocos2dcpp.so", RTLD_LAZY | RTLD_NOLOAD);