// // cocos2d::CCTextureAtlas::initWithTexture from 0x8000e8 to 0x8001ac (196 bytes) // // 5 xrefs: // > cocos2d::CCAtlasNode::initWithTexture @ 0x7c3126 // > cocos2d::CCParticleBatchNode::initWithTexture @ 0x7e5996 // > cocos2d::CCSpriteBatchNode::initWithTexture @ 0x7f2c6c // > cocos2d::CCTextureAtlas::createWithTexture @ 0x8001cc // > cocos2d::CCTextureAtlas::initWithFile @ 0x80020a // // 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 12:01:19 +0000 // _DWORD *__fastcall cocos2d::CCTextureAtlas::initWithTexture( cocos2d::CCTextureAtlas *this, cocos2d::CCTexture2D *a2, unsigned int a3) { int v4; // r9 void *v5; // r0 void *v6; // r5 void *v7; // r0 void *v8; // r6 cocos2d::CCNotificationCenter *v9; // r0 cocos2d::CCArray **v10; // r0 _DWORD *result; // r0 *((_DWORD *)this + 18) = a3; *((_DWORD *)this + 17) = 0; *((_DWORD *)this + 21) = 0; *((_DWORD *)this + 19) = a2; if ( a2 ) cocos2d::CCObject::retain((int)a2); v4 = *((_DWORD *)this + 18); v5 = malloc(96 * v4); *((_DWORD *)this + 20) = v5; v6 = v5; v7 = malloc(12 * v4); v8 = v7; *((_DWORD *)this + 13) = v7; if ( !v6 ) { if ( v4 ) { if ( v7 ) { free(v7); *((_DWORD *)this + 13) = 0; } goto LABEL_12; } LABEL_7: memset(v6, 0, 96 * v4); v9 = (cocos2d::CCNotificationCenter *)memset(v8, 0, 12 * v4); v10 = (cocos2d::CCArray **)cocos2d::CCNotificationCenter::sharedNotificationCenter(v9); cocos2d::CCNotificationCenter::addObserver( v10, this, (int)cocos2d::CCTextureAtlas::listenBackToForeground, 0, "event_come_to_foreground", 0); cocos2d::CCTextureAtlas::setupIndices((int)this); cocos2d::CCTextureAtlas::setupVBO(this); *((_BYTE *)this + 64) = 1; return &dword_0 + 1; } if ( v7 || !v4 ) goto LABEL_7; free(v6); *((_DWORD *)this + 20) = v8; LABEL_12: result = *((_DWORD **)this + 19); if ( result ) { cocos2d::CCObject::release(result); *((_DWORD *)this + 19) = 0; return nullptr; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source