// // LevelSettingsLayer::onSelectMode from 0x6a9414 to 0x6a947e (106 bytes) // // 0 xrefs: // // 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:56:33 +0000 // unsigned int __fastcall LevelSettingsLayer::onSelectMode(LevelSettingsLayer *this, cocos2d::CCObject *a2) { int v3; // r4 unsigned int v4; // r5 int v5; // r7 unsigned int result; // r0 CCMenuItemToggler *v7; // r0 CCMenuItemToggler *v8; // r4 int v9; // r0 void (__fastcall *v10)(CCMenuItemToggler *, _BOOL4); // r8 _BOOL4 v11; // r1 if ( a2 ) { v3 = *((_DWORD *)this + 149); *(_DWORD *)(v3 + 268) = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2); } v4 = 0; v5 = *(_DWORD *)(*((_DWORD *)this + 149) + 268); while ( 1 ) { result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 151)); if ( v4 >= result ) break; v7 = (CCMenuItemToggler *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 151), v4++); v8 = v7; v9 = (*(int (__fastcall **)(CCMenuItemToggler *))(*(_DWORD *)v7 + 32))(v7); CCMenuItemToggler::toggle(v8, v9 == v5); v10 = *(void (__fastcall **)(CCMenuItemToggler *, _BOOL4))(*(_DWORD *)v8 + 528); v11 = (*(int (__fastcall **)(CCMenuItemToggler *))(*(_DWORD *)v8 + 32))(v8) != v5; v10(v8, v11); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source