// // DrawGridLayer::init from 0x36a4c8 to 0x36a5ca (258 bytes) // // 1 xrefs: // > DrawGridLayer::create @ 0x36a6d0 // // 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 // bool DrawGridLayer::init(DrawGridLayer *a1, cocos2d::CCNode *a2, LevelEditorLayer *a3) { _BOOL4 v6; // r0 bool v7; // r7 cocos2d::CCArray *v8; // r0 cocos2d::CCArray *v9; // r0 cocos2d::CCArray *v10; // r0 cocos2d::CCArray *v11; // r0 cocos2d::CCArray *v12; // r0 std::array *v13; // r0 cocos2d::CCPoint *elems; // r8 std::array *v15; // r5 cocos2d::CCPoint *v16; // r6 std::array *v17; // r0 cocos2d::CCPoint *v18; // r8 std::array *v19; // r5 cocos2d::CCPoint *v20; // r6 std::array *v21; // r0 cocos2d::CCPoint *v22; // r8 std::array *v23; // r5 cocos2d::CCPoint *v24; // r6 v6 = cocos2d::CCLayer::init(a1); v7 = v6; if ( v6 ) { a1->m_objectLayer = a2; a1->m_timeMarkers = nullptr; a1->m_editorLayer = a3; v8 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)v6); a1->m_effectGameObjects = v8; cocos2d::CCObject::retain(v8); v10 = (cocos2d::CCArray *)cocos2d::CCArray::create(v9); a1->m_guideObjects = v10; cocos2d::CCObject::retain(v10); v12 = (cocos2d::CCArray *)cocos2d::CCArray::create(v11); a1->m_speedObjects = v12; cocos2d::CCObject::retain(v12); a1->m_fastSpeed = 387.42; a1->m_slowSpeed = 251.16; a1->m_fasterSpeed = 468.0; a1->m_normalSpeed = 311.58; a1->m_currentSpeed = 311.58; a1->m_fastestSpeed = 576.0; v13 = (std::array *)operator new[](0xC80u); elems = v13[1].__elems_; v15 = v13; v16 = (cocos2d::CCPoint *)v13; do cocos2d::CCPoint::CCPoint(v16++); while ( v16 != elems ); a1->m_pointArray1 = v15; memset(v15, 0, sizeof(std::array)); v17 = (std::array *)operator new[](0xC80u); v18 = v17[1].__elems_; v19 = v17; v20 = (cocos2d::CCPoint *)v17; do cocos2d::CCPoint::CCPoint(v20++); while ( v20 != v18 ); a1->m_pointArray2 = v19; memset(v19, 0, sizeof(std::array)); v21 = (std::array *)operator new[](0xC80u); v22 = v21[1].__elems_; v23 = v21; v24 = (cocos2d::CCPoint *)v21; do cocos2d::CCPoint::CCPoint(v24++); while ( v24 != v22 ); a1->m_pointArray3 = v23; memset(v23, 0, sizeof(std::array)); } return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source