// // EditorUI::selectBuildTab from 0x4825d0 to 0x4826a2 (210 bytes) // // 5 xrefs: // > EditorUI::updateCreateMenu @ 0x482778 // > EditorUI::onSelectBuildTab @ 0x4827fa // > EditorUI::handleEditorAction @ 0x6f2438 // > EditorUI::handleEditorAction @ 0x6f244c // > EditorUI::setupCreateMenu @ 0x70c23e // // 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::selectBuildTab(unsigned int this, unsigned int a2) { unsigned int v2; // r4 int v3; // r3 unsigned int v4; // r5 bool v5; // zf EditorSFXManager *v6; // r0 EditorSFXManager *v7; // r0 unsigned int i; // r5 int v9; // r6 unsigned int j; // r5 CCMenuItemToggler *v11; // r0 unsigned int v12; // r3 v2 = this; v3 = *(_DWORD *)(this + 1016); v4 = a2; if ( v3 != a2 && (*(_DWORD *)(this + 940) == 2 || v3 == -1) ) { if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(this + 816)) - 1 <= a2 ) { v6 = (EditorSFXManager *)(cocos2d::CCArray::count(*(cocos2d::CCArray **)(v2 + 816)) - 1); v5 = v6 == nullptr; } else { v6 = (EditorSFXManager *)v4; v5 = v4 == 0; } if ( !v5 ) v6 = (EditorSFXManager *)((char *)&dword_0 + 1); if ( v6 ) { v6 = (EditorSFXManager *)(cocos2d::CCArray::count(*(cocos2d::CCArray **)(v2 + 816)) - 1); if ( (unsigned int)v6 <= v4 ) { v6 = (EditorSFXManager *)cocos2d::CCArray::count(*(cocos2d::CCArray **)(v2 + 816)); v4 = (unsigned int)v6 - 1; } } else { v4 = 0; } v7 = (EditorSFXManager *)EditorSFXManager::sharedState(v6); EditorSFXManager::playAction(v7, 164); *(_DWORD *)(v2 + 1016) = v4; for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(v2 + 816)); ++i ) { v9 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v2 + 816), i); (*(void (__fastcall **)(int, bool))(*(_DWORD *)v9 + 172))(v9, i == *(_DWORD *)(v2 + 1016)); v5 = i == *(_DWORD *)(v2 + 1016); if ( v5 ) *(_DWORD *)(v2 + 612) = v9; } for ( j = 0; ; ++j ) { this = cocos2d::CCArray::count(*(cocos2d::CCArray **)(v2 + 824)); if ( j >= this ) break; v11 = (CCMenuItemToggler *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v2 + 824), j); v12 = j - *(_DWORD *)(v2 + 1016); CCMenuItemToggler::toggle(v11, v12 == 0); } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source