// // cocos2d::CCTMXLayer::updateTileForGID from 0x10025b280 to 0x10025b3bf (319 bytes) // // 1 xrefs: // > cocos2d::CCTMXLayer::setTileGID @ 0x10025b5df // // 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 *__fastcall cocos2d::CCTMXLayer::updateTileForGID( cocos2d::CCTMXLayer *a1, unsigned int a2, const cocos2d::CCPoint *a3) { float height; // xmm4_4 double v5; // xmm0_8 int v6; // ebx cocos2d::CCSprite *v7; // r12 cocos2d::CCTMXTilesetInfo v9; // [rsp+4h] [rbp-4Ch] BYREF cocos2d::CCRect v10; // 0:xmm0_8.8,8:xmm1_8.8 v9.m_uIndexInArray = a2; cocos2d::CCTMXTilesetInfo::rectForGID(&v9, *(_QWORD *)&a1[1].m_uAutoReleaseCount); height = a1[1].m_obContentSize.height; *(_QWORD *)&v5 = LODWORD(v9.__vftable); v10.size = (cocos2d::CCSize)HIDWORD(v9.__vftable); *(float *)&v5 = *(float *)&v9.__vftable / height; v10.size.width = *((float *)&v9.__vftable + 1) / height; sub_10028CC00(&v9.m_nTag, v5, *(double *)&v10.size, *(float *)&v9.m_uID / height, *(float *)&v9.m_nLuaID / height); sub_10028D1A0(&v9, &v9.m_nTag); v6 = (int)(float)((float)(a3->y * *(float *)(&a1->m_bManualSortAllChildrenDirty + 3)) + a3->x); *(double *)&v10.origin = sub_10028D180(&v9.m_nTag); v7 = cocos2d::CCTMXLayer::reusedTileWithRect(a1, v10); *(double *)&v10.origin = sub_10028CC60(&v9.m_nTag); LODWORD(a3) = v9.m_uIndexInArray; cocos2d::CCTMXLayer::setupTileSprite(a1, v7, v10.origin, (unsigned int)&v9.m_nTag); v9.m_nTag = v6; v7->m_uAtlasIndex = ((unsigned __int64)bsearch( &v9.m_nTag, *(const void **)(*(_QWORD *)&a1[1].m_obAnchorPoint.y + 16LL), **(unsigned int **)&a1[1].m_obAnchorPoint.y, 8u, sub_10025B3C0) - *(_QWORD *)(*(_QWORD *)&a1[1].m_obAnchorPoint.y + 16LL)) >> 3; ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v7->setDirty)(v7, 1); ((void (__fastcall *)(cocos2d::CCSprite *))v7->updateTransform)(v7); *(_DWORD *)(*(_QWORD *)&a1[1].m_nTag + 4LL * v6) = (_DWORD)a3; return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source