// // PlayLayer::pauseGame from 0x1001227f0 to 0x100122924 (308 bytes) // // 2 xrefs: // > UILayer::doPause @ 0x10004a01c // > AppDelegate::pauseGame @ 0x100269480 // // 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 PlayLayer::pauseGame(PlayLayer *a1, bool a2) { int *p_m_activeGradients; // x21 PauseLayer *v5; // x20 __int64 v6; // x0 timeb v7; // [xsp+0h] [xbp-30h] BYREF p_m_activeGradients = &a1->m_activeGradients; if ( !a1->m_levelEndAnimationStarted && !a1->m_hasCompletedLevel && (AppDelegate::get()->m_resourceRootPath.m_data.m_short.shortStorage.__elems_[8] & 1) == 0 ) { ((void (__fastcall *)(PlayLayer *, float))a1->applyTimeWarp)(a1, 1.0); *((_BYTE *)p_m_activeGradients + 2007) = 1; a1->m_unk38b0 = 0.0; a1->m_unk38c0 = 0.0; a1->m_unk38b8 = 0.0; ftime(&v7); a1->m_pauseTime = (double)(v7.millitm + 1000 * (unsigned __int64)(v7.time & 0xFFFFF)) / 1000.0; 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); v5 = PauseLayer::create(a2); v6 = ((__int64 (__fastcall *)(PlayLayer *))a1->getParent)(a1); (*(void (__fastcall **)(__int64, PauseLayer *, __int64))(*(_QWORD *)v6 + 448LL))(v6, v5, 10); ((void (__fastcall *)(PlayLayer *))a1->onExit)(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source