// // cocos2d::CCTMXLayer::setTileGID from 0x1800b0660 to 0x1800b085a (506 bytes) // // 5 xrefs: // > cocos2d::CCTMXLayer::setTileGID @ 0x1800b0653 // > @ 0x1801497b0 // > @ 0x180149814 // > @ 0x18014cf68 // > @ 0x1801c24a8 // // This function is hookable on this platform (idp: pc, 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 11:22:19 +0000 // void __fastcall cocos2d::CCTMXLayer::setTileGID(cocos2d::CCTMXLayer *a1, unsigned int a2, float *a3, int a4) { float v8; // xmm0_4 int v9; // ecx unsigned int v10; // eax int v11; // ecx unsigned int v12; // edi unsigned int v13; // r12d __int64 v14; // r14 cocos2d::CCDirector *v15; // rax float ContentScaleFactor; // xmm0_4 float v17; // xmm8_4 cocos2d::CCDirector *v18; // rax float v19; // xmm0_4 float v20; // xmm7_4 cocos2d::CCDirector *v21; // rax float v22; // xmm0_4 float v23; // xmm6_4 cocos2d::CCDirector *v24; // rax float v25; // xmm0_4 cocos2d::CCRect *v26; // rax _DWORD *v27; // rax _DWORD *v28; // rax float v29[2]; // [rsp+30h] [rbp-78h] BYREF float v30[2]; // [rsp+38h] [rbp-70h] BYREF _BYTE v31[16]; // [rsp+40h] [rbp-68h] BYREF int v32; // [rsp+B0h] [rbp+8h] BYREF v8 = (float)(*((float *)a1 + 90) * a3[1]) + *a3; v9 = *(_DWORD *)(*((_QWORD *)a1 + 47) + 4LL * (int)v8); v10 = v9 & 0xE0000000; v11 = v9 & 0x1FFFFFFF; if ( v11 != a2 || v10 != a4 ) { v12 = a4 | a2; if ( a2 ) { if ( v11 ) { v13 = (int)v8; v14 = (*(__int64 (__fastcall **)(cocos2d::CCTMXLayer *, _QWORD))(*(_QWORD *)a1 + 472LL))( a1, (unsigned int)(int)v8); if ( v14 ) { cocos2d::CCTMXTilesetInfo::rectForGID(*((_QWORD *)a1 + 48), v29, a2); v15 = cocos2d::CCDirector::sharedDirector(); ContentScaleFactor = cocos2d::CCDirector::getContentScaleFactor(v15); v17 = v30[1] / ContentScaleFactor; v18 = cocos2d::CCDirector::sharedDirector(); v19 = cocos2d::CCDirector::getContentScaleFactor(v18); v20 = v30[0] / v19; v21 = cocos2d::CCDirector::sharedDirector(); v22 = cocos2d::CCDirector::getContentScaleFactor(v21); v23 = v29[1] / v22; v24 = cocos2d::CCDirector::sharedDirector(); v25 = cocos2d::CCDirector::getContentScaleFactor(v24); v26 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)v31, v29[0] / v25, v23, v20, v17); cocos2d::CCRect::operator=((__int64)v29, (__int64)v26); (*(void (__fastcall **)(__int64, float *, _QWORD, float *))(*(_QWORD *)v14 + 984LL))(v14, v29, 0, v30); if ( a4 ) { v27 = (_DWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v14 + 200LL))(v14); v28 = cocos2d::cc_timeval::operator=(&v32, v27); cocos2d::CCTMXLayer::setupTileSprite(a1, v14, v28, v12); } *(_DWORD *)(*((_QWORD *)a1 + 47) + 4LL * v13) = v12; } else { cocos2d::CCTMXLayer::updateTileForGID(a1, v12, (const struct cocos2d::CCPoint *)a3); } } else { cocos2d::CCTMXLayer::insertTileForGID(a1, v12, (const struct cocos2d::CCPoint *)a3); } } else { cocos2d::CCTMXLayer::removeTileAt(a1, (const struct cocos2d::CCPoint *)a3); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source