// // PlayLayer::pauseGame from 0x10008d960 to 0x10008dad3 (371 bytes) // // 4 xrefs: // > UILayer::doPause @ 0x1004c4db5 // > AppDelegate::applicationWillResignActive @ 0x10073b99e // > AppDelegate::pauseGame @ 0x10073ba0e // > AppDelegate::applicationDidEnterBackground @ 0x10073bac0 // // This function is hookable on this platform (idp: pc, 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:20:07 +0000 // void __fastcall PlayLayer::pauseGame(_BYTE *a1, __int64 a2) { __int64 v3; // rdi __int64 v4; // rdx double v5; // xmm0_8 __int64 v6; // rdi __int64 v7; // r14 __int64 v8; // rax timeb v9[2]; // [rsp-28h] [rbp-28h] BYREF if ( !a1[13336] && !a1[14637] && !*(_BYTE *)(AppDelegate::get(a1, a2) + 65) ) { a1[1982] = 1; (*(void (__fastcall **)(_BYTE *, float))(*(_QWORD *)a1 + 1472LL))(a1, 1.0); a1[14751] = 1; PlayLayer::dtFlushCells(a1); PlayLayer::dtCommitPlaytime(a1); *(_OWORD *)(a1 + 14664) = 0; *((_QWORD *)a1 + 1835) = 0; ftime(v9); *((double *)a1 + 1840) = (double)v9[0].millitm / 1000.0 + (double)SLODWORD(v9[0].time); *(_BYTE *)(cocos2d::CCDirector::sharedDirector(v9, a2) + 178) = 0; PlatformToolbox::showCursor(v9); GJBaseGameLayer::processQueuedButtons(a1, 1, 0.0); PlayerObject::releaseAllButtons(*((_QWORD *)a1 + 407)); v3 = *((_QWORD *)a1 + 408); if ( v3 ) PlayerObject::releaseAllButtons(v3); GJBaseGameLayer::pauseAudio(a1); *(_QWORD *)&v5 = GameManager::sharedState(a1, 1, v4).u64[0]; PlayerObject::releaseAllButtons(*((_QWORD *)a1 + 407)); v6 = *((_QWORD *)a1 + 408); if ( v6 ) PlayerObject::releaseAllButtons(v6); UILayer::resetAllButtons(*((_QWORD *)a1 + 1661)); UILayer::toggleMenuVisibility(*((_QWORD *)a1 + 1661), 0); v7 = PauseLayer::create((unsigned __int8)a2, v5); v8 = (*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 512LL))(a1); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v8 + 464LL))(v8, v7, 10); (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 720LL))(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source