Skip to content

Commit fcaa399

Browse files
committed
remove comments and add ios error if version mismatch
1 parent 363581f commit fcaa399

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

loader/src/cocos2d-ext/CCKeyboardHandler.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,11 @@ CCKeyboardHandler* CCKeyboardHandler::handlerWithDelegate(CCKeyboardDelegate* pD
2828
bool CCKeyboardHandler::initWithDelegate(CCKeyboardDelegate* pDelegate)
2929
{
3030
m_pDelegate = pDelegate;
31-
//dynamic_cast<CCObject*>(pDelegate)->retain();
32-
3331
return true;
3432
}
3533

3634
void CCKeyboardHandler::setDelegate(CCKeyboardDelegate* pDelegate)
3735
{
38-
/*if (pDelegate)
39-
{
40-
dynamic_cast<CCObject*>(pDelegate)->retain();
41-
}
42-
43-
if (m_pDelegate)
44-
{
45-
dynamic_cast<CCObject*>(m_pDelegate)->release();
46-
}*/
47-
4836
m_pDelegate = pDelegate;
4937
}
5038

loader/src/hooks/DynamicCastFix.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ using namespace geode::prelude;
1111
#if defined(GEODE_IS_MACOS) && GEODE_COMP_GD_VERSION != 22074
1212
#error "Unsupported version for macOS dynamic cast fix, please update the addresses"
1313
#endif
14+
#if defined(GEODE_IS_IOS) && GEODE_COMP_GD_VERSION != 22074
15+
#error "Unsupported version for iOS dynamic cast fix, please update the addresses"
16+
#endif
1417

1518
#if defined(GEODE_IS_INTEL_MAC)
1619
void* dynamicCastAddr = reinterpret_cast<void*>(base::get() + 0x7ba1d8);

0 commit comments

Comments
 (0)