// // CCBlockLayer::init from 0x140042550 to 0x14004260b (187 bytes) // // 6 xrefs: // > EditorPauseLayer::init @ 0x1400d9f03 // > PlayLayer::pauseGame @ 0x1403ba35d // > @ 0x14052cc78 // > @ 0x1405521d0 // > @ 0x1405c6680 // > @ 0x1406c43e0 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // bool CCBlockLayer::init(CCBlockLayer *a1) { bool result; // al _BOOL8 v3; // rdx __int64 v4; // rax cocos2d::CCTouchDispatcher *v5; // rax _BOOL8 v6; // rdx _BOOL8 v7; // rdx cocos2d::CCDirector *v8; // rax int v9; // [rsp+38h] [rbp+10h] BYREF v9 = 2097152000; result = cocos2d::CCLayerColor::initWithColor(a1, (const struct cocos2d::_ccColor4B *)&v9); if ( result ) { if ( !a1->m_forcePrioRegistered ) { a1->m_forcePrioRegistered = 1; v4 = cocos2d::CCDirector::sharedDirector(); v5 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 144LL))(v4); cocos2d::CCTouchDispatcher::registerForcePrio(v5, a1, 2); } LOBYTE(v3) = 1; a1->setTouchEnabled(a1, v3); LOBYTE(v6) = 1; a1->setKeypadEnabled(a1, v6); LOBYTE(v7) = 1; a1->setKeyboardEnabled(a1, v7); v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v8); a1->customSetup(a1); a1->m_closeOnHide = 1; return 1; } return result; }