// // GJOptionsLayer::addGVToggle from 0x1002871c0 to 0x1002872dd (285 bytes) // // 26 xrefs: // > EditorOptionsLayer::setupOptions @ 0x10028852d // > EditorOptionsLayer::setupOptions @ 0x10028854a // > EditorOptionsLayer::setupOptions @ 0x100288567 // > EditorOptionsLayer::setupOptions @ 0x100288584 // > EditorOptionsLayer::setupOptions @ 0x1002885a1 // > EditorOptionsLayer::setupOptions @ 0x1002885be // > EditorOptionsLayer::setupOptions @ 0x1002885db // > EditorOptionsLayer::setupOptions @ 0x1002885f8 // > EditorOptionsLayer::setupOptions @ 0x100288615 // > EditorOptionsLayer::setupOptions @ 0x100288632 // > EditorOptionsLayer::setupOptions @ 0x10028866a // > EditorOptionsLayer::setupOptions @ 0x100288687 // > EditorOptionsLayer::setupOptions @ 0x1002886a4 // > EditorOptionsLayer::setupOptions @ 0x1002886c1 // > EditorOptionsLayer::setupOptions @ 0x1002886de // > EditorOptionsLayer::setupOptions @ 0x1002886fb // > EditorOptionsLayer::setupOptions @ 0x100288718 // > EditorOptionsLayer::setupOptions @ 0x100288735 // > EditorOptionsLayer::setupOptions @ 0x100288752 // > EditorOptionsLayer::setupOptions @ 0x10028876f // > EditorOptionsLayer::setupOptions @ 0x10028878c // > EditorOptionsLayer::setupOptions @ 0x1002887a9 // > EditorOptionsLayer::setupOptions @ 0x1002887c6 // > EditorOptionsLayer::setupOptions @ 0x1002887e3 // > SFXSettingsPopup::setupOptions @ 0x1004347ca // > FindObjectOptionsLayer::setupOptions @ 0x1009068ea // // 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 12:27:45 +0000 // __int64 __fastcall GJOptionsLayer::addGVToggle(__int64 a1, char *__s, char *a3) { int v6; // r14d __int64 v7; // rdx __int64 v8; // rax __int64 v9; // r12 __int64 v10; // rbx size_t v11; // rax size_t v12; // r13 char *v13; // rbx __int64 v14; // r14 size_t v15; // r12 __int64 v16; // rax __int64 v18; // [rsp+0h] [rbp-50h] _QWORD __dst[2]; // [rsp+8h] [rbp-48h] BYREF void *__p; // [rsp+18h] [rbp-38h] int v21; // [rsp+24h] [rbp-2Ch] v6 = atoi(a3); GameManager::sharedState(a3, __s, v7); GameManager::getGameVariable(v8, a3); v9 = sub_100287300(a1, __s); v10 = *(_QWORD *)(a1 + 1048); v11 = strlen(a3); if ( v11 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v12 = v11; v18 = v10; if ( v11 >= 0x17 ) { v21 = v6; v14 = v9; v15 = 26; if ( (v11 | 7) != 0x17 ) v15 = (v11 | 7) + 1; v13 = (char *)operator new(v15); __p = v13; __dst[0] = v15 + 1; v9 = v14; v6 = v21; __dst[1] = v12; goto LABEL_8; } LOBYTE(__dst[0]) = 2 * v11; v13 = (char *)__dst + 1; if ( v11 ) LABEL_8: memcpy(v13, a3, v12); v13[v12] = 0; v16 = sub_10088E600(__dst); cocos2d::CCDictionary::setObject_1(v18, v16, v6); if ( (__dst[0] & 1) != 0 ) operator delete(__p); return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source