// // CCBlockLayer::init from 0x100517e10 to 0x100517ecd (189 bytes) // // 7 xrefs: // > EditorPauseLayer::init @ 0x1002911be // > PauseLayer::create @ 0x1003d5cd3 // > PauseLayer::init @ 0x1003d5d1c // > CCBlockLayer::create @ 0x100517dd4 // > @ 0x1008f70a8 // > @ 0x10092fcd0 // > @ 0x10095fd10 // // 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 __fastcall CCBlockLayer::init(CCBlockLayer *a1) { bool result; // al bool v2; // r14 cocos2d::CCDirector *v3; // rax cocos2d::CCTouchDispatcher *v4; // rax cocos2d::CCDirector *v5; // rsi char v6; // [rsp+4h] [rbp-1Ch] BYREF int v7; // [rsp+Ch] [rbp-14h] BYREF double v8; // 0:xmm0_8.8 v7 = 2097152000; result = cocos2d::CCLayerColor::initWithColor(a1, (const cocos2d::ccColor4B *)&v7); if ( result ) { v2 = result; if ( !a1->m_forcePrioRegistered ) { a1->m_forcePrioRegistered = 1; v3 = cocos2d::CCDirector::sharedDirector(); v4 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v3->getTouchDispatcher)(v3); cocos2d::CCTouchDispatcher::registerForcePrio(v4, a1, 2); } ((void (__fastcall *)(CCBlockLayer *, __int64))a1->setTouchEnabled)(a1, 1); ((void (__fastcall *)(CCBlockLayer *, __int64))a1->setKeypadEnabled)(a1, 1); ((void (__fastcall *)(CCBlockLayer *, __int64))a1->setKeyboardEnabled)(a1, 1); v5 = cocos2d::CCDirector::sharedDirector(); *(cocos2d::CCSize *)&v8 = cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v6); ((void (__fastcall *)(CCBlockLayer *, cocos2d::CCDirector *, double))a1->customSetup)(a1, v5, v8); a1->m_closeOnHide = 1; return v2; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source