// // EditorUI::onPause from 0x7ce9e4 to 0x7cebcc (488 bytes) // // 5 xrefs: // > EditorUI::keyBackClicked @ 0xbd6bdc // > EditorUI::handleAction @ 0xbd8b6c // > @ 0xcc670 // > EditorUI::init @ 0x7cfefc // > @ 0x1546010 // // 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:54:13 +0000 // __int64 __fastcall EditorUI::onPause(EditorUI *this, cocos2d::CCObject *a2) { cocos2d::CCDirector *v3; // x0 EditorSFXManager *v5; // x0 EditorSFXManager *v6; // x0 __int64 v7; // x0 unsigned int v8; // w20 __int64 v9; // x0 __int64 v10; // x23 const cocos2d::CCPoint *v11; // x0 long double v12; // q0 __int64 v13; // x0 __int64 v14; // x22 __int64 v15; // x22 EditButtonBar *v16; // x0 GJGameLevel *v17; // x22 int Page; // w0 int v19; // w2 cocos2d::CCDirector *v20; // x0 __int64 v21; // x20 LevelEditorLayer *v22; // x1 __int64 v23; // x0 float v24; // s0 _BYTE v25[8]; // [xsp+40h] [xbp+40h] BYREF v3 = (cocos2d::CCDirector *)*((unsigned __int8 *)this + 1588); if ( !(_DWORD)v3 ) { v5 = (EditorSFXManager *)*(unsigned __int8 *)(cocos2d::CCDirector::sharedDirector(v3) + 176); if ( !(_DWORD)v5 ) { v6 = (EditorSFXManager *)EditorSFXManager::sharedState(v5); EditorSFXManager::playAction(v6, 221); if ( *((_BYTE *)this + 1589) ) { *((_BYTE *)this + 1589) = 0; *((_BYTE *)this + 1590) = 0; EditorUI::showUI((cocos2d::CCArray **)this, 1u); } v7 = *((_QWORD *)this + 180); *((_BYTE *)this + 688) = 0; if ( !*(_DWORD *)(v7 + 1972) ) { v24 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(v7 + 3920) + 168LL))(*(_QWORD *)(v7 + 3920)); v7 = *((_QWORD *)this + 180); *((float *)this + 396) = v24; } LevelEditorLayer::updateKeyframeObjects((cocos2d::CCArray **)v7); v8 = 0; EditorUI::onStopPlaytest((UILayer ***)this, nullptr); EditorUI::updatePlaybackBtn(this); v9 = *((_QWORD *)this + 180); v10 = *(_QWORD *)(v9 + 1936); v11 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v9 + 3920) + 192LL))(*(_QWORD *)(v9 + 3920)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, v11); *(__n128 *)&v12 = cocos2d::CCPoint::operator=(v10 + 1116, v25); v13 = *((_QWORD *)this + 180); v14 = *(_QWORD *)(v13 + 1936); *(float *)(v14 + 1124) = (*(float (__fastcall **)(_QWORD, long double))(**(_QWORD **)(v13 + 3920) + 168LL))( *(_QWORD *)(v13 + 3920), v12); v15 = *(_QWORD *)(*((_QWORD *)this + 180) + 1936LL); *(_DWORD *)(v15 + 1132) = EditButtonBar::getPage(*((EditButtonBar **)this + 103)); *(_DWORD *)(*(_QWORD *)(*((_QWORD *)this + 180) + 1936LL) + 1128LL) = *((_DWORD *)this + 384); *(_DWORD *)(*(_QWORD *)(*((_QWORD *)this + 180) + 1936LL) + 1136LL) = *(__int16 *)(*((_QWORD *)this + 180) + 14210LL); while ( 1 ) { v20 = (cocos2d::CCDirector *)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 149)); if ( v8 >= (unsigned int)v20 ) break; v16 = (EditButtonBar *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 149), v8); v17 = *(GJGameLevel **)(*((_QWORD *)this + 180) + 1936LL); Page = EditButtonBar::getPage(v16); v19 = v8++; GJGameLevel::setLastBuildPageForTab(v17, Page, v19); } v21 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector(v20) + 272); v23 = EditorPauseLayer::create(*((EditorPauseLayer **)this + 180), v22); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v21 + 464LL))(v21, v23, 100); EditorUI::toggleLockUI((__int64)this, 1); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source