// // GJBaseGameLayer::updateObjectSection from 0x1001f41b0 to 0x1001f42ec (316 bytes) // // 3 xrefs: // > LevelEditorLayer::updateObjectSection @ 0x1003628b4 // > @ 0x10078fdb0 // > @ 0x1007c0bc8 // // 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 // void __fastcall GJBaseGameLayer::updateObjectSection(GJBaseGameLayer *a1, GameObject *a2) { int m_outerSectionIndex; // w8 double m_positionX; // d1 double v6; // d0 double v7; // d2 float m_sectionXFactor; // s2 double m_positionY; // d1 float m_sectionYFactor; // s0 int v11; // w8 int m_middleSectionIndex; // w8 m_outerSectionIndex = a2->m_outerSectionIndex; if ( (m_outerSectionIndex & 0x80000000) == 0 ) { m_positionX = a2->m_positionX; v6 = 0.0; v7 = 0.0; if ( m_positionX > 0.0 ) { m_sectionXFactor = a1->m_sectionXFactor; if ( m_positionX >= 10000000.0 ) v7 = (float)(m_sectionXFactor * 10000000.0); else v7 = m_positionX * m_sectionXFactor; } m_positionY = a2->m_positionY; if ( m_positionY > 0.0 ) { m_sectionYFactor = a1->m_sectionYFactor; if ( m_positionY >= 10000000.0 ) v6 = (float)(m_sectionYFactor * 10000000.0); else v6 = m_positionY * m_sectionYFactor; } if ( m_outerSectionIndex != (int)v7 || a2->m_middleSectionIndex != (int)v6 ) { GJBaseGameLayer::removeObjectFromSection(a1, a2); ((void (__fastcall *)(GJBaseGameLayer *, GameObject *))a1->addToSection)(a1, a2); if ( a2->m_isActivated ) { v11 = a2->m_outerSectionIndex; if ( v11 > a1->m_rightSectionIndex || v11 < a1->m_leftSectionIndex || (m_middleSectionIndex = a2->m_middleSectionIndex, m_middleSectionIndex > a1->m_topSectionIndex) || m_middleSectionIndex < a1->m_bottomSectionIndex ) { cocos2d::CCDictionary::setObject(a1->m_objectsToDeactivate, a2, (unsigned int)a2->m_uniqueID); a2->m_unk3ee = 1; } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source