// // GJOptionsLayer::onToggle from 0x4a7bf8 to 0x4a7c8e (150 bytes) // // 0 xrefs: // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void GJOptionsLayer::onToggle(GJOptionsLayer *a1, cocos2d::CCObject *a2) { cocos2d::CCDictionary *m_variables; // r7 intptr_t v5; // r0 cocos2d::CCString *v6; // r7 GameManager *v7; // r5 const char *CString; // r0 void (__fastcall *didToggleGV)(GJOptionsLayer *__hidden, std::string); // r8 char *v10; // r0 void (__fastcall *didToggle)(GJOptionsLayer *__hidden, int); // r7 int v12; // r0 _BYTE v13[4]; // [sp+8h] [bp-8h] BYREF m_variables = a1->m_variables; v5 = a2->getTag(a2); v6 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(m_variables, v5); if ( v6 ) { v7 = GameManager::sharedState(); CString = cocos2d::CCString::getCString(v6); GameManager::toggleGameVariable(v7, CString); didToggleGV = a1->didToggleGV; v10 = (char *)cocos2d::CCString::getCString(v6); sub_776584((int)v13, v10); ((void (__fastcall *)(GJOptionsLayer *, _BYTE *))didToggleGV)(a1, v13); sub_774008(v13); } else { didToggle = a1->didToggle; v12 = a2->getTag(a2); didToggle(a1, v12); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source