// // LevelEditorLayer::postUpdate from 0x66eaf0 to 0x66ed30 (576 bytes) // // 2 xrefs: // > @ 0x745f8 // > @ 0x1155200 // // 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 LevelEditorLayer::postUpdate(LevelEditorLayer *a1, float a2) { float *v3; // x22 GJEffectManager *m_effectManager; // x21 PlayerObject *m_player1; // x21 _BOOL4 m_maybeIsColliding; // w0 cocos2d::CCSprite *m_playtestDeathSprite; // x23 PlayerObject *v9; // x0 const cocos2d::CCPoint *(__fastcall *getPosition)(cocos2d::CCNode *__hidden); // x1 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x21 __int64 v12; // x0 EditorUI *m_editorUI; // x0 PlayerObject *v14; // x0 PlayerObject_vtbl *v15; // x1 const cocos2d::CCPoint *v16; // x0 const cocos2d::CCPoint *v17; // x0 const cocos2d::CCPoint *v18; // x0 __int64 v19; // [xsp+0h] [xbp+0h] BYREF __int64 v20; // [xsp+48h] [xbp+48h] cocos2d::CCPoint v21; // [xsp+50h] [xbp+50h] BYREF cocos2d::CCPoint v22; // 0:s0.4,4:s1.4 cocos2d::CCPoint v23; // 0:s0.4,4:s1.4 cocos2d::CCPoint v24; // 0:s0.4,4:s1.4 v3 = &a1->m_varianceValues.__elems_[1975]; if ( !a1->m_gameState.m_isDualMode ) a1->m_soloMode = 1; GJEffectManager::processColors(a1->m_effectManager); m_effectManager = a1->m_effectManager; *(cocos2d::ccColor3B *)&v20 = GJEffectManager::activeColorForIndex(m_effectManager, 1005); GJEffectManager::calculateLightBGColor(m_effectManager, (cocos2d::ccColor3B)v20); a1->updateVisibility(a1, a2); if ( *((_BYTE *)v3 + 2225) ) GJBaseGameLayer::updateLevelColors(a1); if ( *((_BYTE *)v3 + 248) ) { v18 = a1->m_player1->getPosition(a1->m_player1); cocos2d::CCPoint::CCPoint(&v21, v18); LevelEditorLayer::addTouchPoint(a1, v24); } m_player1 = a1->m_player1; m_maybeIsColliding = m_player1->m_maybeIsColliding; a1->m_trailTimer = a1->m_trailTimer + a2; if ( !m_maybeIsColliding ) { if ( !a1->m_gameState.m_isDualMode ) goto LABEL_9; m_player1 = a1->m_player2; if ( !m_player1->m_maybeIsColliding ) goto LABEL_9; } PlayerObject::playerDestroyed(m_player1, 0); m_playtestDeathSprite = a1->m_playtestDeathSprite; v9 = m_player1; getPosition = m_player1->getPosition; setPosition = m_playtestDeathSprite->setPosition; v12 = (__int64)getPosition(v9); setPosition(m_playtestDeathSprite, (const cocos2d::CCPoint *)v12); a1->m_playtestDeathSprite->setVisible(a1->m_playtestDeathSprite, 1); LevelEditorLayer::onStopPlaytest(a1); m_editorUI = a1->m_editorUI; if ( m_editorUI ) { EditorUI::playtestStopped(m_editorUI); if ( a1->m_playbackMode != Playing ) return; } else { LABEL_9: if ( a1->m_playbackMode != Playing ) return; } if ( a1->m_trailTimer >= 0.033333 ) { v14 = a1->m_player1; v15 = v14->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_trailTimer = 0.0; v16 = v15->getPosition(v14); cocos2d::CCPoint::CCPoint(&v21, v16); LevelEditorLayer::addPlayerPoint(a1, v22); if ( a1->m_gameState.m_isDualMode ) { v17 = a1->m_player2->getPosition(a1->m_player2); cocos2d::CCPoint::CCPoint(&v21, v17); LevelEditorLayer::addPlayer2Point(a1, v23, (unsigned __int8)&v19 + 80); *((_BYTE *)v3 + 2172) = 0; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source