// // ParentalOptionsLayer::onToggle from 0x1404d2ea0 to 0x1404d2fa4 (260 bytes) // // 3 xrefs: // > ParentalOptionsLayer::onMasterToggle @ 0x1404d3010 // > ParentalOptionsLayer::addToggle @ 0x1404d2626 // > @ 0x1409297bc // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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:33:01 +0000 // // Hidden C++ exception states: #wind=2 __int64 __fastcall ParentalOptionsLayer::onToggle(__int64 a1, __int64 a2) { int v3; // eax cocos2d::CCString *v4; // rdi __int64 v5; // rbx __int64 v6; // rcx bool v7; // bl char *CString; // rax __int64 v9; // rcx void *v11; // [rsp+30h] [rbp+8h] void *v12; // [rsp+30h] [rbp+8h] v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2); v4 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 688), v3); v5 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v11 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v11); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v5 = qword_14090BFD0; } v7 = GameManager::getGameVariable(v5, "0218") || GameManager::getGameVariable(v5, "0219") || GameManager::getGameVariable(v5, "0243"); if ( v4 ) { if ( !qword_14090BFD0 ) { v12 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v12); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); } CString = (char *)cocos2d::CCString::getCString(v4); GameManager::toggleGameVariable(v9, CString); } return ParentalOptionsLayer::applyPrivacyPushEdge(v6, v7); }
GD Web Decomp Icon

GD Web Decomp

Raw Source