// // LevelEditorLayer::onResumePlaytest from 0x1003630d8 to 0x100363204 (300 bytes) // // 1 xrefs: // > EditorUI::onPlaytest @ 0x1003c790c // // 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::onResumePlaytest(LevelEditorLayer *a1) { int *p_m_activeGradients; // x20 cocos2d::CCDirector *v3; // x0 cocos2d::CCDirector *v4; // x0 float v5; // s0 p_m_activeGradients = &a1->m_activeGradients; v3 = cocos2d::CCDirector::sharedDirector(); *(_BYTE *)(((__int64 (__fastcall *)(cocos2d::CCDirector *))v3->getKeyboardDispatcher)(v3) + 92) = 1; UILayer::editorPlaytest(a1->m_uiLayer, 1); if ( (p_m_activeGradients[368] & 1) == 0 ) { *((_BYTE *)p_m_activeGradients + 1472) = 1; ((void (__fastcall *)(LevelEditorLayer *, GameObject *))a1->addToSection)(a1, a1->m_player1CollisionBlock); ((void (__fastcall *)(LevelEditorLayer *, GameObject *))a1->addToSection)(a1, a1->m_player2CollisionBlock); } if ( *((_BYTE *)p_m_activeGradients + 1464) == 1 ) { v4 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::resetSmoothFixCounter(v4); cocos2d::CCDirector::sharedDirector()->m_bSmoothFixCheck = 1; } v5 = ((float (__fastcall *)(cocos2d::CCLayer *))a1->m_objectLayer->getScale)(a1->m_objectLayer); a1->m_playtestZoom = v5; ((void (__fastcall *)(cocos2d::CCLayer *, float))a1->m_objectLayer->setScale)(a1->m_objectLayer, fminf(v5, 0.7)); ((void (__fastcall *)(LevelEditorLayer *, float))a1->updateTimeWarp)(a1, a1->m_playtestTimeWarp); a1->m_playbackMode = Playing; cocos2d::CCNode::resumeSchedulerAndActions(a1->m_player1); cocos2d::CCNode::pauseSchedulerAndActions(a1->m_player2); a1->m_gameState.m_cameraZoom = a1->m_playtestCameraZoom; LevelEditorLayer::recreateGroups(a1); GJBaseGameLayer::optimizeMoveGroups(a1); a1->m_spawnTriggersChanged = 1; *(_DWORD *)&a1->m_triggersChanged = 16843009; GJBaseGameLayer::resumeAudio(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source