remove comments and add ios error if version mismatch

This commit is contained in:
FireMario211 2025-03-31 15:37:52 -04:00
parent 363581f6d4
commit fcaa399bca
2 changed files with 3 additions and 12 deletions
loader/src

View file

@ -28,23 +28,11 @@ CCKeyboardHandler* CCKeyboardHandler::handlerWithDelegate(CCKeyboardDelegate* pD
bool CCKeyboardHandler::initWithDelegate(CCKeyboardDelegate* pDelegate)
{
m_pDelegate = pDelegate;
//dynamic_cast<CCObject*>(pDelegate)->retain();
return true;
}
void CCKeyboardHandler::setDelegate(CCKeyboardDelegate* pDelegate)
{
/*if (pDelegate)
{
dynamic_cast<CCObject*>(pDelegate)->retain();
}
if (m_pDelegate)
{
dynamic_cast<CCObject*>(m_pDelegate)->release();
}*/
m_pDelegate = pDelegate;
}

View file

@ -11,6 +11,9 @@ $execute {
#if defined(GEODE_IS_MACOS) && GEODE_COMP_GD_VERSION != 22074
#error "Unsupported version for macOS dynamic cast fix, please update the addresses"
#endif
#if defined(GEODE_IS_IOS) && GEODE_COMP_GD_VERSION != 22074
#error "Unsupported version for iOS dynamic cast fix, please update the addresses"
#endif
#if defined(GEODE_IS_INTEL_MAC)
void* dynamicCastAddr = reinterpret_cast<void*>(base::get() + 0x7ba1d8);