// // PlayLayer::pauseGame from 0x314494 to 0x314560 (204 bytes) // // 2 xrefs: // > AppDelegate::pauseGame @ 0x307aac // > UILayer::doPause @ 0x30d35e // // 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::pauseGame(PlayLayer *a1, bool a2) { PauseLayer *v4; // r5 cocos2d::CCNode *v5; // r0 if ( PlayLayer::canPauseGame(a1) && !BYTE1(AppDelegate::get()->m_startupScriptFilename.m_data.m_data) ) { ((void (__fastcall *)(PlayLayer *, int))a1->applyTimeWarp)(a1, 1065353216); a1->m_isPaused = 1; a1->m_unk38b0 = 0.0; a1->m_unk38b8 = 0.0; a1->m_unk38c0 = 0.0; a1->m_pauseTime = PlayLayer::getTempMilliTime(a1); cocos2d::CCDirector::sharedDirector()->m_bSmoothFixCheck = 0; PlatformToolbox::showCursor(); GJBaseGameLayer::processQueuedButtons(a1, 0.0, 1); PlayerObject::releaseAllButtons(a1->m_player1); GJBaseGameLayer::pauseAudio(a1); GameManager::sharedState(); PlayerObject::releaseAllButtons(a1->m_player1); UILayer::resetAllButtons(a1->m_uiLayer); UILayer::toggleMenuVisibility(a1->m_uiLayer, 0); v4 = PauseLayer::create(a2); v5 = a1->getParent(a1); v5->addChild_0(v5, v4, 10); a1->onExit(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source