// // PlayLayer::resumeAndRestart from 0x14051a750 to 0x14051a9f7 (679 bytes) // // 3 xrefs: // > PauseLayer::onRestart @ 0x1404daf36 // > PauseLayer::onRestartFull @ 0x1404db066 // > @ 0x14092ae48 // // 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 11:33:35 +0000 // // Hidden C++ exception states: #wind=5 void __fastcall PlayLayer::resumeAndRestart(_BYTE *a1, char a2) { _QWORD *v4; // rcx _QWORD *v5; // rcx __int64 v6; // rax __int64 v7; // rcx __int64 v8; // rcx __int64 v9; // rcx __int64 v10; // rdx __int64 v11; // rdx __int64 v12; // rcx __int64 v13; // r8 __int64 v14; // r9 __int64 v15; // rcx __int64 v16; // rdx __int64 v17; // rcx __int64 v18; // r8 __int64 v19; // r9 cocos2d::CCEGLView *v20; // rax __int64 v21; // rcx __int64 v22; // rdx __int64 v23; // rcx __int64 v24; // r8 __int64 v25; // r9 cocos2d::CCEGLView *v26; // rax void *v27; // [rsp+30h] [rbp+8h] void *v28; // [rsp+30h] [rbp+8h] void *v29; // [rsp+30h] [rbp+8h] void *v30; // [rsp+30h] [rbp+8h] void *v31; // [rsp+30h] [rbp+8h] if ( !a1[13024] || a1[13025] ) { if ( a2 || !a1[12670] ) { GJBaseGameLayer::resetAudio(); } else { v4 = (_QWORD *)qword_14090BF60; if ( !qword_14090BF60 ) { v27 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v27); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v4 = (_QWORD *)qword_14090BF60; } FMODAudioEngine::stopAllEffects(v4); v5 = (_QWORD *)qword_14090BF60; if ( !qword_14090BF60 ) { v28 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v28); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v5 = (_QWORD *)qword_14090BF60; } FMODAudioEngine::stopAllMusic(v5, 0); } a1[15560] = 0; v6 = qword_14090BF60; if ( !qword_14090BF60 ) { v29 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v29); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v6 = qword_14090BF60; } a1[14944] = *(float *)(v6 + 512) <= 0.0; } a1[15431] = 0; a1[2214] = 0; if ( *(_BYTE *)(cocos2d::CCApplication::sharedApplication(a1) + 225) ) { *(_BYTE *)(cocos2d::CCApplication::sharedApplication(v7) + 225) = 0; PlayerObject::releaseAllButtons(*((_QWORD *)a1 + 439)); v8 = *((_QWORD *)a1 + 440); if ( v8 ) PlayerObject::releaseAllButtons(v8); v9 = *((_QWORD *)a1 + 1736); *(_QWORD *)(v9 + 584) = -1; *(_WORD *)(v9 + 578) = 0; *(_BYTE *)(v9 + 580) = 0; UILayer::resetUINodeState(v9); LOBYTE(v10) = 1; UILayer::toggleMenuVisibility(*((_QWORD *)a1 + 1736), v10); *(_BYTE *)(cocos2d::CCEGLView::sharedOpenGLView(v12, v11, v13, v14) + 237) = 1; v15 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v30 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v30); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v15 = qword_14090BFD0; } if ( GameManager::getGameVariable(v15, "0128") ) { v20 = (cocos2d::CCEGLView *)cocos2d::CCEGLView::sharedOpenGLView(v17, v16, v18, v19); cocos2d::CCEGLView::toggleLockCursor(v20, 1); } else { v21 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v31 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v31); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v21 = qword_14090BFD0; } if ( !GameManager::getGameVariable(v21, "0024") ) { v26 = (cocos2d::CCEGLView *)cocos2d::CCEGLView::sharedOpenGLView(v23, v22, v24, v25); cocos2d::CCEGLView::showCursor(v26, 0); } } (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 696LL))(a1); if ( a2 ) PlayLayer::resetLevelFromStart(a1); else (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1456LL))(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source