// // LevelEditorLayer::onResumePlaytest from 0x36e888 to 0x36e948 (192 bytes) // // 1 xrefs: // > EditorUI::onPlaytest @ 0x3a33f8 // // 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::onResumePlaytest(LevelEditorLayer *a1) { cocos2d::CCDirector *v2; // r0 cocos2d::CCDirector *v3; // r0 float v4; // s15 int v5; // r1 PlayerObject *m_player1; // r0 v2 = cocos2d::CCDirector::sharedDirector(); v2->getKeyboardDispatcher(v2)->m_bBlockRepeat = 1; UILayer::editorPlaytest(a1->m_uiLayer, 1); LevelEditorLayer::addPlayerCollisionBlock(a1); if ( a1->m_playTestSmoothFix ) { v3 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::resetSmoothFixCounter(v3); cocos2d::CCDirector::sharedDirector()->m_bSmoothFixCheck = 1; } v4 = COERCE_FLOAT(((int (__fastcall *)(cocos2d::CCLayer *))a1->m_objectLayer->getScale)(a1->m_objectLayer)); a1->m_playtestZoom = v4; if ( v4 < 0.7 ) v5 = LODWORD(v4); else v5 = 1060320051; ((void (__fastcall *)(cocos2d::CCLayer *, int))a1->m_objectLayer->setScale)(a1->m_objectLayer, v5); ((void (__fastcall *)(LevelEditorLayer *, _DWORD))a1->updateTimeWarp)(a1, LODWORD(a1->m_playtestTimeWarp)); m_player1 = a1->m_player1; a1->m_playbackMode = Playing; cocos2d::CCNode::resumeSchedulerAndActions(m_player1); cocos2d::CCNode::pauseSchedulerAndActions(a1->m_player2); a1->m_gameState.m_cameraZoom = a1->m_playtestCameraZoom; LevelEditorLayer::recreateGroups(a1); GJBaseGameLayer::optimizeMoveGroups(a1); LevelEditorLayer::dirtifyTriggers(a1); GJBaseGameLayer::resumeAudio(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source