// // LevelEditorLayer::onPausePlaytest from 0x1000c68c0 to 0x1000c6aab (491 bytes) // // 2 xrefs: // > EditorUI::onPlaytest @ 0x10000881f // > EditorUI::handleAction @ 0x10060b85d // // 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:36 +0000 // __int64 __fastcall LevelEditorLayer::onPausePlaytest(_QWORD *a1, __int64 a2) { _QWORD *v2; // rbx __int64 v3; // rax _QWORD *v4; // rdi unsigned __int64 v5; // rsi __int64 v6; // rax __int64 v7; // rcx _QWORD *v8; // rdx __int64 v9; // r12 _QWORD *v10; // r13 __int64 v11; // rbx __int64 i; // r15 __int64 v13; // rdi __int64 result; // rax __int64 v15; // [rsp+8h] [rbp-38h] _QWORD *v16; // [rsp+10h] [rbp-30h] v2 = a1; v3 = cocos2d::CCDirector::sharedDirector(a1, a2); *(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3) + 132) = 0; v4 = (_QWORD *)a1[1661]; v5 = 0; UILayer::editorPlaytest(v4, 0); v6 = v2[1671]; v7 = v2[1672]; if ( v7 != v6 ) { v5 = 0; v16 = v2; do { v8 = *(_QWORD **)(v6 + 8 * v5); if ( v8 ) { v4 = (_QWORD *)((v8[1] - *v8) >> 3); if ( (int)v4 > 0 ) { v9 = 0; v15 = ((v8[1] - *v8) >> 3) & 0x7FFFFFFFLL; do { v10 = *(_QWORD **)(**(_QWORD **)(v2[1671] + 8 * v5) + 8 * v9); if ( v10 ) { v11 = *(int *)(**(_QWORD **)(v16[1692] + 8 * v5) + 4 * v9); if ( v11 > 0 ) { for ( i = 0; i != v11; ++i ) GameObject::quickUpdatePosition(*(_QWORD *)(*v10 + 8 * i)); } } ++v9; v4 = (_QWORD *)v15; v2 = v16; } while ( v9 != v15 ); v6 = v16[1671]; v7 = v16[1672]; } } ++v5; } while ( (v7 - v6) >> 3 > v5 ); } if ( *((_BYTE *)v2 + 14024) == 1 ) { *((_BYTE *)v2 + 14024) = 0; GJBaseGameLayer::removeObjectFromSection(v2, v2[1530]); v5 = v2[1531]; v4 = v2; GJBaseGameLayer::removeObjectFromSection(v2, v5); } if ( *((_BYTE *)v2 + 14017) == 1 ) { v13 = cocos2d::CCDirector::sharedDirector(v4, v5); cocos2d::CCDirector::resetSmoothFixCounter(v13); *(_BYTE *)(cocos2d::CCDirector::sharedDirector(v13, v5) + 178) = 0; } *((_DWORD *)v2 + 493) = 2; cocos2d::CCNode::pauseSchedulerAndActions(v2[407]); cocos2d::CCNode::pauseSchedulerAndActions(v2[408]); *((_DWORD *)v2 + 3556) = *((_DWORD *)v2 + 204); *((_BYTE *)v2 + 1982) = 1; (*(void (__fastcall **)(_QWORD *, float))(*v2 + 1464LL))(v2, 1.0); *((_DWORD *)v2 + 3557) = *((_DWORD *)v2 + 106); result = GJBaseGameLayer::pauseAudio(v2); if ( *((_BYTE *)v2 + 14011) == 1 ) *((_BYTE *)v2 + 14184) = 1; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source