// // PlayLayer::resume from 0x10014c65c to 0x10014c7d4 (376 bytes) // // 2 xrefs: // > PauseLayer::onResume @ 0x1001bf8d4 // > PauseLayer::onResume @ 0x1001bf91c // // 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 10:59:37 +0000 // void __fastcall PlayLayer::resume(__int64 a1) { __int64 v2; // x0 __int64 v3; // x0 __int64 v4; // x0 __int64 v5; // x0 __int64 v6; // x0 __int64 v7; // x0 __int64 v8; // x0 __int64 v9; // x0 double BackgroundMusicVolume; // d0 __int64 v11; // x0 __int64 v12; // x0 __int64 v13; // x0 __int64 v14; // x0 __n128 GameVariable; // q0 __int64 v16; // x0 __int64 v17; // x0 __n128 v18; // q0 unsigned __int64 v19; // d1 timeb v20; // [xsp+0h] [xbp-20h] BYREF v2 = AppDelegate::get(a1); if ( *(_BYTE *)(v2 + 17) == 1 ) { v3 = FMODAudioEngine::sharedEngine(v2); v4 = FMODAudioEngine::logLifecycleState(v3, "PlayLayer resume"); if ( (*(_BYTE *)(a1 + 12650) & 1) != 0 ) { v5 = FMODAudioEngine::sharedEngine(v4); v6 = sub_1001B5870(v5); v7 = FMODAudioEngine::sharedEngine(v6); v8 = FMOD::System::update(*(_QWORD *)(v7 + 488)); } else { v8 = GJBaseGameLayer::preResumeGame(a1); *(_BYTE *)(a1 + 13806) = 1; } v9 = FMODAudioEngine::sharedEngine(v8); BackgroundMusicVolume = FMODAudioEngine::getBackgroundMusicVolume(v9); *(_BYTE *)(a1 + 14288) = *(float *)&BackgroundMusicVolume <= 0.0; *(_BYTE *)(a1 + 14751) = 0; *(_BYTE *)(a1 + 1982) = *(_BYTE *)(a1 + 12650); v12 = cocos2d::CCDirector::sharedDirector(v11); *(_BYTE *)(v12 + 178) = 1; v13 = GameManager::sharedState(v12); GameVariable = GameManager::getGameVariable(v13, "0128"); if ( (_DWORD)v14 ) { v16 = PlatformToolbox::toggleLockCursor(1, GameVariable); } else { v17 = GameManager::sharedState(v14); v18 = GameManager::getGameVariable(v17, "0024"); if ( (v16 & 1) == 0 ) v16 = PlatformToolbox::hideCursor(v18); } *(_BYTE *)(AppDelegate::get(v16) + 17) = 0; (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 704LL))(a1); sub_1002C9F00(*(_QWORD *)(a1 + 3256)); if ( *(_BYTE *)(a1 + 1010) == 1 ) sub_1002C9F00(*(_QWORD *)(a1 + 3264)); PlayLayer::releaseAllPlayerButtons(a1); UILayer::refreshDpad(*(_QWORD *)(a1 + 13288)); UILayer::resetAllButtons(*(_QWORD *)(a1 + 13288)); UILayer::toggleMenuVisibility(*(_QWORD *)(a1 + 13288), 1); ftime(&v20); LOWORD(v19) = v20.millitm; *(double *)(a1 + 14736) = *(double *)(a1 + 14736) + (double)v19 / 1000.0 + (double)v20.time - *(double *)(a1 + 14720); PlayLayer::updateTestModeLabel(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source