// // EditorUI::onPause from 0x48a06c to 0x48a1c6 (346 bytes) // // 2 xrefs: // > EditorUI::keyBackClicked @ 0x6f1240 // > EditorUI::handleAction @ 0x6f27e4 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:49:28 +0000 // cocos2d::CCDirector *__fastcall EditorUI::onPause(cocos2d::CCDirector *this, cocos2d::CCObject *a2) { int v2; // r4 EditorSFXManager *v3; // r0 int v4; // r3 int v5; // r3 int v6; // r7 const cocos2d::CCPoint *v7; // r0 int v8; // r3 int v9; // r5 int v10; // r5 unsigned int v11; // r5 cocos2d::CCDirector *v12; // r0 EditButtonBar *v13; // r0 GJGameLevel *v14; // r7 int Page; // r0 int v16; // r2 int v17; // r5 LevelEditorLayer *v18; // r1 int v19; // r0 _BYTE v20[8]; // [sp+4h] [bp-10h] BYREF v2 = (int)this; if ( !*((_BYTE *)this + 1052) ) { this = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(this); if ( !*((_BYTE *)this + 140) ) { v3 = (EditorSFXManager *)EditorSFXManager::sharedState(this); EditorSFXManager::playAction(v3, 221); if ( *(_BYTE *)(v2 + 1053) ) { *(_BYTE *)(v2 + 1053) = 0; *(_BYTE *)(v2 + 1054) = 0; EditorUI::showUI((cocos2d::CCArray **)v2, 1); } *(_BYTE *)(v2 + 508) = 0; v4 = *(_DWORD *)(v2 + 944); if ( !*(_DWORD *)(v4 + 1428) ) *(_DWORD *)(v2 + 1048) = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v4 + 2436) + 84))(*(_DWORD *)(v4 + 2436)); LevelEditorLayer::updateKeyframeObjects(*(_DWORD *)(v2 + 944)); EditorUI::onStopPlaytest((GJEffectManager ***)v2, nullptr); EditorUI::updatePlaybackBtn((EditorUI *)v2); v5 = *(_DWORD *)(v2 + 944); v6 = *(_DWORD *)(v5 + 1408); v7 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v5 + 2436) + 96))(*(_DWORD *)(v5 + 2436)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, v7); cocos2d::CCPoint::operator=(v6 + 928, v20); v8 = *(_DWORD *)(v2 + 944); v9 = *(_DWORD *)(v8 + 1408); *(_DWORD *)(v9 + 936) = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v8 + 2436) + 84))(*(_DWORD *)(v8 + 2436)); v10 = *(_DWORD *)(*(_DWORD *)(v2 + 944) + 1408); *(_DWORD *)(v10 + 944) = EditButtonBar::getPage(*(EditButtonBar **)(v2 + 612)); v11 = 0; *(_DWORD *)(*(_DWORD *)(*(_DWORD *)(v2 + 944) + 1408) + 940) = *(_DWORD *)(v2 + 1016); *(_DWORD *)(*(_DWORD *)(*(_DWORD *)(v2 + 944) + 1408) + 948) = *(__int16 *)(*(_DWORD *)(v2 + 944) + 11826); while ( 1 ) { v12 = (cocos2d::CCDirector *)cocos2d::CCArray::count(*(cocos2d::CCArray **)(v2 + 816)); if ( v11 >= (unsigned int)v12 ) break; v13 = (EditButtonBar *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v2 + 816), v11); v14 = *(GJGameLevel **)(*(_DWORD *)(v2 + 944) + 1408); Page = EditButtonBar::getPage(v13); v16 = v11++; GJGameLevel::setLastBuildPageForTab(v14, Page, v16); } v17 = *(_DWORD *)(cocos2d::CCDirector::sharedDirector(v12) + 220); v19 = EditorPauseLayer::create(*(EditorPauseLayer **)(v2 + 944), v18); (*(void (__fastcall **)(int, int, int))(*(_DWORD *)v17 + 232))(v17, v19, 100); return (cocos2d::CCDirector *)EditorUI::toggleLockUI(v2, 1); } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source