// // PlayLayer::removeAllObjects from 0x1403badb0 to 0x1403baf84 (468 bytes) // // 5 xrefs: // > EndLevelLayer::onEdit @ 0x1401352c8 // > PlayLayer::setupHasCompleted @ 0x1403a779d // > @ 0x14069a384 // > @ 0x14069a3cc // > @ 0x1406d7124 // // 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 PlayLayer::removeAllObjects(PlayLayer *a1) { UILayer *m_uiLayer; // rax _BOOL8 v3; // rdx PlayerObject *m_player1; // rbx PlayerObject *v5; // rbx float v6; // xmm6_4 bool v7; // zf float v8; // xmm1_4 _BOOL8 v9; // rdx PlayerObject *m_player2; // rbx PlayerObject *v11; // rbx cocos2d::CCArray *m_objects; // rax cocos2d::ccArray *data; // rdi __int64 num; // rax cocos2d::CCObject **arr; // rdi cocos2d::CCObject **i; // rbp cocos2d::CCObject *v17; // rbx m_uiLayer = a1->m_uiLayer; a1->m_unk376d = 0; m_uiLayer->m_pauseBtn->setEnabled(m_uiLayer->m_pauseBtn, 0); LOBYTE(v3) = 1; a1->m_player1->deactivateObject(a1->m_player1, v3); m_player1 = a1->m_player1; if ( m_player1->m_hasGroundParticles ) cocos2d::CCParticleSystem::stopSystem(m_player1->m_playerGroundParticles); m_player1->m_hasGroundParticles = 0; v5 = a1->m_player1; cocos2d::CCMotionStreak::stopStroke(v5->m_regularTrail); v6 = 0.2; if ( v5->m_fadeOutStreak ) { v7 = !v5->m_playEffects; v5->m_fadeOutStreak = 0; if ( v7 ) v8 = 0.60000002; else v8 = 0.2; PlayerObject::fadeOutStreak2(v5, v8); } PlayerObject::toggleGhostEffect(a1->m_player1, (GhostType)0); if ( a1->m_gameState.m_isDualMode ) { LOBYTE(v9) = 1; a1->m_player2->deactivateObject(a1->m_player2, v9); m_player2 = a1->m_player2; if ( m_player2->m_hasGroundParticles ) cocos2d::CCParticleSystem::stopSystem(m_player2->m_playerGroundParticles); m_player2->m_hasGroundParticles = 0; v11 = a1->m_player2; cocos2d::CCMotionStreak::stopStroke(v11->m_regularTrail); if ( v11->m_fadeOutStreak ) { v7 = !v11->m_playEffects; v11->m_fadeOutStreak = 0; if ( v7 ) v6 = 0.60000002; PlayerObject::fadeOutStreak2(v11, v6); } PlayerObject::toggleGhostEffect(a1->m_player2, (GhostType)0); } m_objects = a1->m_objects; if ( m_objects ) { data = m_objects->data; num = data->num; if ( (_DWORD)num ) { arr = data->arr; for ( i = &arr[num - 1]; arr <= i; ++arr ) { v17 = *arr; if ( !*arr ) break; LOBYTE(v9) = 1; v17->__vftable[15].setTag(*arr, v9); ((void (__fastcall *)(cocos2d::CCObject *))v17->__vftable[9].setTag)(v17); } } } cocos2d::CCArray::removeAllObjects(a1->m_objects); }
GD Web Decomp Icon

GD Web Decomp

Raw Source