// // LevelEditorLayer::addObjectsInRect from 0x65d978 to 0x65dad0 (344 bytes) // // 1 xrefs: // > @ 0xb6e08 // // 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 // // local variable allocation has failed, the output may be wrong! void LevelEditorLayer::addObjectsInRect( LevelEditorLayer *a1, cocos2d::CCRect a2, bool a3, cocos2d::CCArray *a4, cocos2d::CCArray *a5) { cocos2d::CCArray *v5; // x4 unsigned int v8; // w19 int v9; // w24 _BOOL8 v10; // x28 cocos2d::CCArray *v11; // x27 bool *p_m_nonSquareRotation; // x23 GameObject *v13; // x21 cocos2d::CCRect v14; // [xsp+68h] [xbp+68h] BYREF v8 = 0; v9 = (unsigned __int8)a4; v10 = a3; v11 = v5; p_m_nonSquareRotation = &a1->m_nonSquareRotation; while ( v8 < (unsigned int)cocos2d::CCArray::count(a5) ) { v13 = (GameObject *)cocos2d::CCArray::objectAtIndex(a5, v8); if ( v9 ) { LevelEditorLayer::getObjectRect(a1, v13, 0, 0); if ( *p_m_nonSquareRotation ) goto LABEL_4; } else { if ( !LevelEditorLayer::validGroup(a1, v13, 1) ) goto LABEL_6; LevelEditorLayer::getObjectRect(a1, v13, 0, 0); if ( *p_m_nonSquareRotation ) goto LABEL_4; } if ( (unsigned __int8)cocos2d::CCRect::intersectsRect((cocos2d::CCRect *)v10, &v14) ) { LABEL_5: cocos2d::CCArray::addObject(v11, v13); goto LABEL_6; } if ( !*p_m_nonSquareRotation ) { ++v8; continue; } LABEL_4: if ( OBB2D::overlaps(a1->m_currentOBB2D) ) goto LABEL_5; LABEL_6: ++v8; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source