mirror of
https://github.com/geode-sdk/geode.git
synced 2025-04-19 08:25:09 -04:00
remove comments and add ios error if version mismatch
This commit is contained in:
parent
363581f6d4
commit
fcaa399bca
2 changed files with 3 additions and 12 deletions
loader/src
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue