// // EditorUI::updateCreateMenu from 0x4826a2 to 0x4827b2 (272 bytes) // // 8 xrefs: // > EditorUI::onCreateButton @ 0x4827d8 // > EditorUI::resetUI @ 0x489cd6 // > EditorUI::onShowUIBtn @ 0x489e04 // > EditorUI::clickOnPosition @ 0x48c7ee // > EditorUI::handleEditorAction @ 0x6f1f36 // > EditorUI::orderUpCustomItem @ 0x6f68b4 // > EditorUI::orderDownCustomItem @ 0x6f68f0 // > EditorUI::setupCreateMenu @ 0x70c26c // // 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:23 +0000 // unsigned int __fastcall EditorUI::updateCreateMenu(EditorUI *this, int a2) { unsigned int v3; // r5 int v5; // r0 unsigned int result; // r0 cocos2d::CCArray *v7; // r6 int *v8; // r0 int v9; // r2 int v10; // r3 cocos2d::CCArray *v11; // r6 unsigned int i; // r5 int *v13; // r0 int v14; // r2 int v15; // r3 cocos2d::CCArray *v16; // r8 unsigned int j; // r6 int v18; // r0 int v19; // r3 int v20; // r2 int v21; // r5 cocos2d::CCArray *v22; // r8 unsigned int k; // r6 int v24; // r0 v3 = *((unsigned __int8 *)this + 1053); v5 = *((_DWORD *)this + 153); if ( !v3 && *((_DWORD *)this + 235) == 2 ) { (*(void (__fastcall **)(int, int))(*(_DWORD *)v5 + 172))(v5, 1); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 205) + 172))(*((_DWORD *)this + 205), 1); v7 = *((cocos2d::CCArray **)this + 224); while ( v3 < cocos2d::CCArray::count(v7) ) { v8 = (int *)cocos2d::CCArray::objectAtIndex(v7, v3++); EditorUI::enableButton((int)this, v8, v9, v10); } v11 = *((cocos2d::CCArray **)this + 225); for ( i = 0; i < cocos2d::CCArray::count(v11); ++i ) { v13 = (int *)cocos2d::CCArray::objectAtIndex(v11, i); EditorUI::enableButton((int)this, v13, v14, v15); } v16 = *((cocos2d::CCArray **)this + 224); for ( j = 0; j < cocos2d::CCArray::count(v16); ++j ) { v18 = cocos2d::CCArray::objectAtIndex(v16, j); v19 = *((_DWORD *)this + 223); v20 = *(_DWORD *)(v18 + 404); v21 = v18; if ( v20 == v19 ) { LABEL_15: result = EditorUI::disableButton((int)this, (int *)v21, v20, v19); if ( a2 ) { EditorUI::selectBuildTab((unsigned int)this, *(_DWORD *)(v21 + 412)); return EditButtonBar::goToPage(*((EditButtonBar **)this + 153), *(_DWORD *)(v21 + 408)); } return result; } } v22 = *((cocos2d::CCArray **)this + 225); for ( k = 0; ; ++k ) { result = cocos2d::CCArray::count(v22); if ( k >= result ) break; v24 = cocos2d::CCArray::objectAtIndex(v22, k); v19 = *((_DWORD *)this + 223); v20 = *(_DWORD *)(v24 + 404); v21 = v24; if ( v20 == v19 ) goto LABEL_15; } } else { (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v5 + 172))(v5, 0); return (*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 205) + 172))(*((_DWORD *)this + 205), 0); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source