// // GJBaseGameLayer::updateObjectSection from 0x473b48 to 0x473c58 (272 bytes) // // 1 xrefs: // > LevelEditorLayer::updateObjectSection @ 0x364e18 // // 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 GJBaseGameLayer::updateObjectSection(GJBaseGameLayer *a1, GameObject *a2) { int m_outerSectionIndex; // r2 double m_positionX; // d7 double v6; // d6 float *p_m_sectionXFactor; // r3 bool v8; // nf int v9; // s12 double m_positionY; // d7 double v11; // d5 float *p_m_sectionYFactor; // r3 bool v13; // nf int v14; // s14 int v15; // r3 int m_middleSectionIndex; // r3 m_outerSectionIndex = a2->m_outerSectionIndex; if ( m_outerSectionIndex >= 0 ) { m_positionX = a2->m_positionX; if ( m_positionX <= 0.0 ) { v9 = 0; } else { HIDWORD(v6) = 1097011920; p_m_sectionXFactor = &a1->m_sectionXFactor; v8 = m_positionX < 10000000.0; if ( m_positionX >= 10000000.0 ) LODWORD(v6) = 1259902592; else *(float *)&v6 = *p_m_sectionXFactor; if ( m_positionX >= 10000000.0 ) *((float *)&m_positionX + 1) = *p_m_sectionXFactor; else v6 = *(float *)&v6; if ( v8 ) v6 = m_positionX * v6; else *(float *)&v6 = *((float *)&m_positionX + 1) * *(float *)&v6; if ( v8 ) v9 = (int)v6; else v9 = (int)*(float *)&v6; } m_positionY = a2->m_positionY; if ( m_positionY <= 0.0 ) { v14 = 0; } else { v11 = 10000000.0; p_m_sectionYFactor = &a1->m_sectionYFactor; v13 = m_positionY < 10000000.0; if ( m_positionY >= 10000000.0 ) *(float *)&m_positionY = *p_m_sectionYFactor; else *(float *)&v11 = *p_m_sectionYFactor; if ( v13 ) v11 = *(float *)&v11; else HIDWORD(m_positionY) = 1259902592; if ( v13 ) m_positionY = m_positionY * v11; else *(float *)&m_positionY = *(float *)&m_positionY * *((float *)&m_positionY + 1); if ( v13 ) v14 = (int)m_positionY; else v14 = (int)*(float *)&m_positionY; } if ( v9 != m_outerSectionIndex || v14 != a2->m_middleSectionIndex ) { GJBaseGameLayer::reorderObjectSection(a1, a2); if ( a2->m_isActivated ) { v15 = a2->m_outerSectionIndex; if ( v15 > a1->m_rightSectionIndex || v15 < 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, a2->m_uniqueID); a2->m_unk3ee = 1; } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source