// // cocos2d::CCLayerMultiplex::initWithLayers from 0x180052170 to 0x180052265 (245 bytes) // // 5 xrefs: // > cocos2d::CCLayerMultiplex::create @ 0x180051912 // > @ 0x180141694 // > @ 0x1801416a4 // > @ 0x18014cf68 // > @ 0x1801bc220 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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:21:45 +0000 // bool __fastcall cocos2d::CCLayerMultiplex::initWithLayers( cocos2d::CCLayerMultiplex *this, struct cocos2d::CCLayer *a2, char *a3) { struct cocos2d::CCDirector *v6; // rax __int64 v7; // rdi __int64 v8; // rax struct cocos2d::CCArray *v9; // rax struct cocos2d::CCObject *v10; // rax cocos2d::CCArray *v11; // rcx __int64 v12; // rbx struct cocos2d::CCString *v13; // rax char v15; // [rsp+48h] [rbp+20h] BYREF v6 = cocos2d::CCDirector::sharedDirector(); if ( v6 ) { v7 = *(_QWORD *)this; cocos2d::CCDirector::getWinSize(v6, &v15); (*(void (__fastcall **)(cocos2d::CCLayerMultiplex *, __int64))(v7 + 312))(this, v8); *((_WORD *)this + 180) = 0; v9 = cocos2d::CCArray::createWithCapacity(5u); *((_QWORD *)this + 52) = v9; cocos2d::CCObject::retain(v9); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 52), a2); v10 = *(struct cocos2d::CCObject **)a3; if ( *(_QWORD *)a3 ) { do { cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 52), v10); v10 = *((struct cocos2d::CCObject **)a3 + 1); a3 += 8; } while ( v10 ); } v11 = *((cocos2d::CCArray **)this + 52); v12 = *(_QWORD *)this; *((_DWORD *)this + 102) = 0; v13 = cocos2d::CCArray::stringAtIndex(v11, 0); (*(void (__fastcall **)(cocos2d::CCLayerMultiplex *, struct cocos2d::CCString *))(v12 + 464))(this, v13); LOBYTE(v6) = 1; } return (char)v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source