// // LevelBrowserLayer::onSafeMode from 0x4a8c5c to 0x4a8cce (114 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:49:56 +0000 // int __fastcall LevelBrowserLayer::onSafeMode(LevelBrowserLayer *this, cocos2d::CCObject *a2) { int result; // r0 char *v4; // r7 int v5; // r6 int v6; // t1 int v7; // r3 int v8; // r3 int v9; // r0 GJSearchObject *v10; // r0 result = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2); if ( result != dword_D1E020 ) { v4 = (char *)this + 584; v5 = 0; dword_D1E020 = result; do { v6 = *((_DWORD *)v4 + 1); v4 += 4; v7 = dword_D1E020 - v5++; GameToolbox::setOnOffSprite(v6, v7 == 0); } while ( v5 != 3 ); v8 = *(_DWORD *)(*((_DWORD *)this + 125) + 264); switch ( v8 ) { case 33: case 22: v9 = 1; break; case 34: v9 = 2; break; case 23: v9 = 2; break; default: v9 = 0; break; } v10 = (GJSearchObject *)LevelBrowserLayer::safeSearchObject(v9); LevelBrowserLayer::loadPage((GJSearchObject **)this, v10); return LevelBrowserLayer::updateBackgroundColor((int)this); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source