// // GJOptionsLayer::onToggle from 0x1002d3b10 to 0x1002d3bf0 (224 bytes) // // 2 xrefs: // > GJOptionsLayer::addToggleInternal @ 0x1002d366c // > GameOptionsLayer::setupOptions @ 0x1002e1a5c // // 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 __fastcall GJOptionsLayer::onToggle(GJOptionsLayer *a1, cocos2d::CCObject *a2) { cocos2d::CCDictionary *m_variables; // x21 int v5; // w0 cocos2d::CCObject *v6; // x0 cocos2d::CCString *v7; // x21 GameManager *v8; // x20 const char *CString; // x0 char *v10; // x0 __int64 v11; // x0 void *__p[2]; // [xsp+8h] [xbp-38h] BYREF char v13; // [xsp+1Fh] [xbp-21h] m_variables = a1->m_variables; v5 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2); v6 = cocos2d::CCDictionary::objectForKey(m_variables, v5); if ( v6 ) { v7 = (cocos2d::CCString *)v6; v8 = GameManager::sharedState(); CString = cocos2d::CCString::getCString(v7); GameManager::toggleGameVariable(v8, CString); v10 = (char *)cocos2d::CCString::getCString(v7); sub_100009900(__p, v10); ((void (__fastcall *)(GJOptionsLayer *, void **))a1->didToggleGV)(a1, __p); if ( v13 < 0 ) operator delete(__p[0]); } else { v11 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2); ((void (__fastcall *)(GJOptionsLayer *, __int64))a1->didToggle)(a1, v11); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source