// // cocos2d::CCTMXLayer::calculateLayerOffset from 0xdab1f4 to 0xdab320 (300 bytes) // // 2 xrefs: // > cocos2d::CCTMXLayer::initWithTilesetInfo @ 0xdab4f0 // > @ 0xfa870 // // This function is hookable on this platform (idp: arm, 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 13:08:35 +0000 // float *__usercall cocos2d::CCTMXLayer::calculateLayerOffset@( cocos2d::CCTMXLayer *this@, const cocos2d::CCPoint *a2@, float *a3@) { int v6; // w0 float v8; // [xsp+50h] [xbp+50h] BYREF cocos2d::CCPoint::CCPoint(a3, (const cocos2d::CCPoint *)&unk_1562410); v6 = *((_DWORD *)this + 98); if ( v6 == 1 ) { cocos2d::CCPoint::equals(a2, (const cocos2d::CCPoint *)&unk_1562410); } else if ( v6 ) { if ( v6 == 2 ) { cocos2d::CCPoint::CCPoint( &v8, (float)(*((float *)this + 91) * 0.5) * (float)(*(float *)a2 - *((float *)a2 + 1)), (float)(*((float *)this + 92) * 0.5) * (float)((float)-*(float *)a2 - *((float *)a2 + 1))); cocos2d::CCPoint::operator=(a3, &v8); } } else { cocos2d::CCPoint::CCPoint( &v8, *(float *)a2 * *((float *)this + 91), (float)-*((float *)a2 + 1) * *((float *)this + 92)); cocos2d::CCPoint::operator=(a3, &v8); } return a3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source