// // cocos2d::CCTMXLayer::appendTileForGID from 0x5f7b74 to 0x5f7c7c (264 bytes) // // 1 xrefs: // > cocos2d::CCTMXLayer::setupTiles @ 0x5f7d2c // // 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 // cocos2d::CCSprite *cocos2d::CCTMXLayer::appendTileForGID( cocos2d::CCTMXLayer *a1, unsigned int a2, const cocos2d::CCPoint *a3) { float x; // s18 cocos2d::CCDirector *v7; // r0 float v8; // r0 float y; // s17 float v10; // s18 cocos2d::CCDirector *v11; // r0 float v12; // r0 float width; // s16 float v14; // s17 cocos2d::CCDirector *v15; // r0 float v16; // r0 float height; // s19 float v18; // s16 cocos2d::CCDirector *v19; // r0 float v20; // r0 float v21; // s16 cocos2d::CCSprite *v22; // r7 cocos2d::CCPoint v23; // r2 unsigned int v24; // r4 unsigned int v26; // [sp+0h] [bp-Ch] cocos2d::CCRect v27; // [sp+Ch] [bp+0h] BYREF cocos2d::CCRect v28; // [sp+1Ch] [bp+10h] BYREF cocos2d::CCRect v29; // 0:r1.12,12:^0.4 cocos2d::CCTMXTilesetInfo::rectForGID(&v27, (cocos2d::CCTMXTilesetInfo *)a1[1].m_uAutoReleaseCount, a2); x = v27.origin.x; v7 = cocos2d::CCDirector::sharedDirector(); v8 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v7)); y = v27.origin.y; v10 = x / v8; v11 = cocos2d::CCDirector::sharedDirector(); v12 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v11)); width = v27.size.width; v14 = y / v12; v15 = cocos2d::CCDirector::sharedDirector(); v16 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v15)); height = v27.size.height; v18 = width / v16; v19 = cocos2d::CCDirector::sharedDirector(); v20 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v19)); cocos2d::CCRect::CCRect(&v28, v10, v14, v18, height / v20); cocos2d::CCRect::operator=(&v27, &v28.origin.x); v21 = a3->x + (float)(a3->y * *(float *)&a1[1].cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable); cocos2d::CCRect::CCRect(&v28, &v27); LODWORD(v29.origin.x) = &v28; v22 = cocos2d::CCTMXLayer::reusedTileWithRect(a1, v29); cocos2d::CCPoint::CCPoint(&v28.origin, a3); LODWORD(v23.x) = &v28; LODWORD(v23.y) = a2; cocos2d::CCTMXLayer::setupTileSprite(a1, v22, v23, v26); v24 = *(_DWORD *)LODWORD(a1[1].m_fScaleX); cocos2d::CCSpriteBatchNode::insertQuadFromSprite(a1, v22, v24); cocos2d::ccCArrayInsertValueAtIndex((_DWORD *)LODWORD(a1[1].m_fScaleX), (int)v21, v24); return v22; }
GD Web Decomp Icon

GD Web Decomp

Raw Source