File tree Expand file tree Collapse file tree 2 files changed +3
-12
lines changed
Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -28,23 +28,11 @@ CCKeyboardHandler* CCKeyboardHandler::handlerWithDelegate(CCKeyboardDelegate* pD
2828bool CCKeyboardHandler::initWithDelegate (CCKeyboardDelegate* pDelegate)
2929{
3030 m_pDelegate = pDelegate;
31- // dynamic_cast<CCObject*>(pDelegate)->retain();
32-
3331 return true ;
3432}
3533
3634void 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
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments