// // LevelEditorLayer::onPausePlaytest from 0x1000f2a40 to 0x1000f2c24 (484 bytes) // // 1 xrefs: // > EditorUI::onPlaytest @ 0x10000c602 // // 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 __fastcall LevelEditorLayer::onPausePlaytest(LevelEditorLayer *a1) { LevelEditorLayer *v1; // rbx cocos2d::CCDirector *v2; // rax std::__vector_base *, std::allocator *>> *, std::allocator *, std::allocator *>> *>>::pointer begin; // rax std::__vector_base *, std::allocator *>> *, std::allocator *, std::allocator *>> *>>::pointer end; // rcx unsigned __int64 v5; // rsi std::vector *, std::allocator *>> *v6; // rdx unsigned __int64 v7; // rdi __int64 v8; // r12 std::vector *v9; // r13 __int64 v10; // rbx __int64 i; // r15 cocos2d::CCDirector *v12; // rax v1 = a1; v2 = cocos2d::CCDirector::sharedDirector(); *(_BYTE *)(((__int64 (__fastcall *)(cocos2d::CCDirector *))v2->getKeyboardDispatcher)(v2) + 92) = 0; UILayer::editorPlaytest(a1->m_uiLayer, 0); begin = a1->m_sections.__begin_; end = a1->m_sections.__end_; if ( end != begin ) { v5 = 0; do { v6 = begin[v5]; if ( v6 ) { v7 = (unsigned __int64)((char *)v6->__end_ - (char *)v6->__begin_) >> 3; if ( (int)v7 > 0 ) { v8 = 0; do { v9 = v1->m_sections.__begin_[v5]->__begin_[v8]; if ( v9 ) { v10 = a1->m_sectionSizes.__begin_[v5]->__begin_[v8]; if ( v10 > 0 ) { for ( i = 0; i != v10; ++i ) GameObject::quickUpdatePosition(v9->__begin_[i]); } } ++v8; v1 = a1; } while ( v8 != (v7 & 0x7FFFFFFF) ); begin = a1->m_sections.__begin_; end = a1->m_sections.__end_; } } ++v5; } while ( end - begin > v5 ); } if ( v1->m_collisionBlocksAdded ) { v1->m_collisionBlocksAdded = 0; GJBaseGameLayer::removeObjectFromSection(v1, v1->m_player1CollisionBlock); GJBaseGameLayer::removeObjectFromSection(v1, v1->m_player2CollisionBlock); } if ( v1->m_playTestSmoothFix ) { v12 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::resetSmoothFixCounter(v12); cocos2d::CCDirector::sharedDirector()->m_bSmoothFixCheck = 0; } v1->m_playbackMode = Paused; cocos2d::CCNode::pauseSchedulerAndActions(v1->m_player1); cocos2d::CCNode::pauseSchedulerAndActions(v1->m_player2); v1->m_playtestTimeWarp = v1->m_gameState.m_timeWarp; ((void (__fastcall *)(LevelEditorLayer *, float))v1->updateTimeWarp)(v1, 1.0); v1->m_playtestCameraZoom = v1->m_gameState.m_cameraZoom; GJBaseGameLayer::pauseAudio(v1); if ( v1->m_playtestOrderChanged ) v1->m_spawnOrderObjectsChanged = 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source