// // cocos2d::CCLayer::init from 0x18004fe50 to 0x18004fea0 (80 bytes) // // 7 xrefs: // > cocos2d::CCMenu::initWithArray @ 0x18005946d // > @ 0x1800ecf38 // > @ 0x1800ee470 // > @ 0x180137fa4 // > @ 0x180137fb4 // > @ 0x1801438a8 // > @ 0x1801b1ec0 // // 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 cocos2d::CCLayer::init(cocos2d::CCLayer *this) { cocos2d::CCDirector *v2; // rax cocos2d::CCLayer_vtbl *v3; // rbx struct cocos2d::CCSize WinSize; // rax v2 = cocos2d::CCDirector::sharedDirector(); if ( v2 ) { v3 = this->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; WinSize = cocos2d::CCDirector::getWinSize(v2); ((void (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::CCSize))v3->setContentSize)(this, WinSize); *(_WORD *)&this->m_bTouchEnabled = 0; LOBYTE(v2) = 1; } return (char)v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source