// // GJOptionsLayer::onToggle from 0x5d7354 to 0x5d73f8 (164 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:54:09 +0000 // int __fastcall GJOptionsLayer::onToggle(cocos2d::CCDictionary **this, cocos2d::CCObject *a2, int a3, int a4) { cocos2d::CCDictionary *v6; // r7 int v7; // r0 GameManager *v8; // r0 cocos2d::CCString *v9; // r7 GameManager *v10; // r5 char *CString; // r0 void (__fastcall *v12)(cocos2d::CCDictionary **, GJOptionsLayer **); // r8 const char *v13; // r7 size_t v14; // r0 int (__fastcall *v16)(cocos2d::CCDictionary **, int); // r7 int v17; // r0 GJOptionsLayer *v18; // [sp+0h] [bp-10h] BYREF cocos2d::CCObject *v19; // [sp+4h] [bp-Ch] int v20; // [sp+8h] [bp-8h] int v21; // [sp+Ch] [bp-4h] v18 = (GJOptionsLayer *)this; v19 = a2; v20 = a3; v21 = a4; v6 = *(this + 186); v7 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2); v8 = (GameManager *)cocos2d::CCDictionary::objectForKey(v6, v7); v9 = v8; if ( v8 ) { v10 = (GameManager *)GameManager::sharedState(v8); CString = (char *)cocos2d::CCString::getCString(v9); GameManager::toggleGameVariable(v10, CString); v12 = *((void (__fastcall **)(cocos2d::CCDictionary **, GJOptionsLayer **))*this + 189); v18 = nullptr; v19 = nullptr; v20 = 0; v13 = (const char *)cocos2d::CCString::getCString(v9); v14 = strlen(v13); std::string::__init((int *)&v18, v13, v14); v12(this, &v18); return std::string::~string((int)&v18); } else { v16 = *((int (__fastcall **)(cocos2d::CCDictionary **, int))*this + 190); v17 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2); return v16(this, v17); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source