// // cocos2d::CCScrollLayer::initWithLayers from 0x3c7fbc to 0x3c808a (206 bytes) // // 1 xrefs: // > cocos2d::CCScrollLayer::nodeWithLayers @ 0x3c8148 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:46:35 +0000 // cocos2d::CCDirector *__fastcall cocos2d::CCScrollLayer::initWithLayers( cocos2d::CCScrollLayer *this, cocos2d::CCArray *a2, int a3) { cocos2d::CCDirector *v6; // r0 cocos2d::CCDirector *v7; // r8 int v8; // r0 cocos2d::CCTouchDispatcher *v9; // r0 cocos2d::CCDirector *v10; // r0 cocos2d::CCDirector *WinSize; // r0 unsigned int v12; // r5 int v13; // s15 float v14; // s15 unsigned int v15; // r1 int v16; // r0 float v18[2]; // [sp+4h] [bp-10h] BYREF v6 = (cocos2d::CCDirector *)cocos2d::CCLayer::init(this); v7 = v6; if ( v6 ) { v8 = cocos2d::CCDirector::sharedDirector(v6); v9 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v8 + 80))(v8); v10 = (cocos2d::CCDirector *)cocos2d::CCTouchDispatcher::addTargetedDelegate( v9, (cocos2d::CCScrollLayer *)((char *)this + 264), 0, 1); *((_DWORD *)this + 79) = 1; cocos2d::CCDirector::sharedDirector(v10); WinSize = (cocos2d::CCDirector *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v18); *((float *)this + 81) = (float)((int)v18[0] - a3); cocos2d::CCDirector::sharedDirector(WinSize); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v18); v12 = 0; v13 = (int)v18[1]; *((_DWORD *)this + 83) = *((_DWORD *)this + 81); v14 = (float)v13; *((float *)this + 82) = v14; *((float *)this + 84) = v14; while ( v12 < cocos2d::CCArray::count(a2) ) { v15 = v12++; v16 = cocos2d::CCArray::objectAtIndex(a2, v15); (*(void (__fastcall **)(cocos2d::CCScrollLayer *, int))(*(_DWORD *)this + 228))(this, v16); } *((_DWORD *)this + 80) = cocos2d::CCArray::count(a2); } return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source