// // GJOptionsLayer::onToggle from 0x140290d50 to 0x140290e52 (258 bytes) // // 3 xrefs: // > GJOptionsLayer::addToggleInternal @ 0x140290048 // > GameOptionsLayer::setupOptions @ 0x14029f7a9 // > @ 0x1406d1988 // // 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 // // Hidden C++ exception states: #wind=1 void GJOptionsLayer::onToggle(GJOptionsLayer *a1, cocos2d::CCObject *a2) { int v4; // eax cocos2d::CCString *v5; // rbx const char *CString; // rax GameManager *v7; // rcx const char *v8; // rax size_t v9; // r8 GJOptionsLayer_vtbl *v10; // rbx unsigned int v11; // eax __int128 v12; // [rsp+20h] [rbp-28h] BYREF __int64 v13; // [rsp+30h] [rbp-18h] __int64 v14; // [rsp+38h] [rbp-10h] void *v15; // [rsp+50h] [rbp+8h] v4 = a2->getTag(a2); v5 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(a1->m_variables, v4); if ( v5 ) { if ( !qword_1406C2ED8 ) { v15 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v15); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); } CString = cocos2d::CCString::getCString(v5); GameManager::toggleGameVariable(v7, CString); v8 = cocos2d::CCString::getCString(v5); v12 = 0; v13 = 0; v14 = 0; v9 = -1; do ++v9; while ( v8[v9] ); sub_14003A930(&v12, v8, v9); a1->didToggleGV(a1, (std::string *)&v12); } else { v10 = a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v11 = a2->getTag(a2); v10->didToggle(a1, v11); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source