// // cocos2d::CCTMXLayer::setupTiles from 0x8049c0 to 0x804ab0 (240 bytes) // // 1 xrefs: // > cocos2d::CCTMXTiledMap::parseLayer @ 0x8050d2 // // 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:23 +0000 // cocos2d::CCSprite *__fastcall cocos2d::CCTMXLayer::setupTiles(cocos2d::CCTMXLayer *this) { unsigned int v2; // r7 float *v3; // r5 cocos2d::CCTexture2D *v4; // r0 float *ContentSizeInPixels; // r0 __int64 v6; // r0 unsigned int v7; // r2 cocos2d::CCSprite *result; // r0 unsigned int i; // r8 float v10; // s14 unsigned int v11; // r5 unsigned int v12; // r3 unsigned int v13; // r3 float v14[2]; // [sp+4h] [bp-10h] BYREF v2 = 0; v3 = (float *)(*((_DWORD *)this + 77) + 96); v4 = (cocos2d::CCTexture2D *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 67) + 48))(*((_DWORD *)this + 67)); ContentSizeInPixels = (float *)cocos2d::CCTexture2D::getContentSizeInPixels(v4); cocos2d::CCSize::operator=(v3, ContentSizeInPixels); v6 = ((__int64 (__fastcall *)(_DWORD))*(_DWORD *)(**((_DWORD **)this + 67) + 48))(*((_DWORD *)this + 67)); cocos2d::CCTexture2D::setAliasTexParameters((cocos2d **)v6, HIDWORD(v6), v7); result = (cocos2d::CCSprite *)cocos2d::CCTMXLayer::parseInternalProperties(this); while ( (float)v2 < *((float *)this + 73) ) { for ( i = 0; ; ++i ) { v10 = *((float *)this + 72); if ( (float)i >= v10 ) break; v11 = *(_DWORD *)(*((_DWORD *)this + 76) + 4 * (unsigned int)(float)((float)i + (float)(v10 * (float)v2))); if ( v11 ) { cocos2d::CCPoint::CCPoint(v14, (float)i, (float)v2); result = cocos2d::CCTMXLayer::appendTileForGID(this, v11, (const cocos2d::CCPoint *)v14); v12 = *((_DWORD *)this + 84); if ( v12 > v11 ) *((_DWORD *)this + 84) = v11; else *((_DWORD *)this + 84) = v12; v13 = *((_DWORD *)this + 85); if ( v13 < v11 ) *((_DWORD *)this + 85) = v11; else *((_DWORD *)this + 85) = v13; } } ++v2; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source