// // PlayLayer::resume from 0x6fffc0 to 0x700150 (400 bytes) // // 3 xrefs: // > PauseLayer::onResume @ 0x7d558c // > PauseLayer::onResume @ 0x7d55d0 // > @ 0x5d820 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:52:02 +0000 // __int64 __fastcall PlayLayer::resume(PlayerObject **this) { __int64 result; // x0 FMODAudioEngine *v3; // x0 __int64 v4; // x0 FMODAudioEngine *v5; // x0 __int64 v6; // x0 PlatformToolbox *v7; // x0 cocos2d::CCDirector *DeviceRefreshRate; // x0 float v9; // s0 __int64 v10; // x0 FMODAudioEngine *v11; // x0 FMODAudioEngine *v12; // x0 float BackgroundMusicVolume; // s0 cocos2d::CCDirector *v14; // x0 GameManager *v15; // x0 GameManager *v16; // x0 GameManager *GameVariable; // x0 PlatformToolbox *v18; // x0 GameManager *v19; // x0 float v20; // [xsp+30h] [xbp+30h] result = *(unsigned __int8 *)(AppDelegate::get((AppDelegate *)this) + 17); if ( (_DWORD)result ) { v3 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)result); FMODAudioEngine::logLifecycleState(v3, "PlayLayer resume"); if ( *((_BYTE *)this + 12650) ) { v4 = FMODAudioEngine::sharedEngine((FMODAudioEngine *)*((unsigned __int8 *)this + 12650)); v5 = (FMODAudioEngine *)FMODAudioEngine::resumeAllAudio(v4); v6 = FMODAudioEngine::sharedEngine(v5); v7 = (PlatformToolbox *)FMOD::System::update(*(FMOD::System **)(v6 + 488)); } else { GJBaseGameLayer::preResumeGame((GJBaseGameLayer *)this); v7 = (PlatformToolbox *)(&dword_0 + 1); *((_BYTE *)this + 13806) = 1; } DeviceRefreshRate = (cocos2d::CCDirector *)PlatformToolbox::getDeviceRefreshRate(v7); v20 = v9; v10 = cocos2d::CCDirector::sharedDirector(DeviceRefreshRate); v11 = (FMODAudioEngine *)(*(__int64 (__fastcall **)(__int64, double))(*(_QWORD *)v10 + 96LL))( v10, (float)(1.0 / v20)); v12 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v11); BackgroundMusicVolume = FMODAudioEngine::getBackgroundMusicVolume(v12); *((_BYTE *)this + 14751) = 0; v14 = (cocos2d::CCDirector *)*((unsigned __int8 *)this + 12650); *((_BYTE *)this + 14288) = BackgroundMusicVolume <= 0.0; *((_BYTE *)this + 1982) = (_BYTE)v14; v15 = (GameManager *)cocos2d::CCDirector::sharedDirector(v14); *((_BYTE *)v15 + 178) = 1; v16 = (GameManager *)GameManager::sharedState(v15); GameVariable = (GameManager *)(unsigned __int8)GameManager::getGameVariable(v16, "0128"); if ( (_BYTE)GameVariable ) { PlatformToolbox::toggleLockCursor((PlatformToolbox *)((char *)&dword_0 + 1)); } else { v19 = (GameManager *)GameManager::sharedState(GameVariable); v18 = (PlatformToolbox *)(unsigned __int8)GameManager::getGameVariable(v19, "0024"); if ( !(_BYTE)v18 ) PlatformToolbox::hideCursor(v18); } *(_BYTE *)(AppDelegate::get(v18) + 17) = 0; (*((void (__fastcall **)(PlayerObject **))*this + 88))(this); PlayerObject::refreshStreakState(*(this + 407)); if ( *((_BYTE *)this + 1010) ) PlayerObject::refreshStreakState(*(this + 408)); PlayLayer::releaseAllPlayerButtons(this); UILayer::refreshDpad(*(this + 1661)); UILayer::resetAllButtons(*(this + 1661)); UILayer::toggleMenuVisibility(*(this + 1661), 1u); *((double *)this + 1842) = *((double *)this + 1842) + PlayLayer::getTempMilliTime((PlayLayer *)this) - *((double *)this + 1840); return PlayLayer::updateTestModeLabel((PlayLayer *)this); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source