// // SetupOptionsTriggerPopup::addOption from 0x1005e7680 to 0x1005e789f (543 bytes) // // 13 xrefs: // > SetupOptionsTriggerPopup::init @ 0x1005e6fc4 // > SetupOptionsTriggerPopup::init @ 0x1005e7016 // > SetupOptionsTriggerPopup::init @ 0x1005e7061 // > SetupOptionsTriggerPopup::init @ 0x1005e70ac // > SetupOptionsTriggerPopup::init @ 0x1005e70f7 // > SetupOptionsTriggerPopup::init @ 0x1005e7146 // > SetupOptionsTriggerPopup::init @ 0x1005e7195 // > SetupOptionsTriggerPopup::init @ 0x1005e71f9 // > SetupOptionsTriggerPopup::init @ 0x1005e7252 // > SetupOptionsTriggerPopup::init @ 0x1005e72a8 // > SetupOptionsTriggerPopup::init @ 0x1005e72e8 // > SetupOptionsTriggerPopup::init @ 0x1005e7329 // > SetupOptionsTriggerPopup::init @ 0x1005e736c // // 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 SetupOptionsTriggerPopup::addOption(__int64 a1, unsigned int a2, __int64 a3) { bool v4; // zf const char *v5; // r15 cocos2d::CCLabelBMFont *v6; // r12 unsigned int v7; // r12d int v8; // r14d __int128 v9; // [rsp+18h] [rbp-78h] BYREF void *v10; // [rsp+28h] [rbp-68h] __int128 v11; // [rsp+30h] [rbp-60h] BYREF void *__p[2]; // [rsp+40h] [rbp-50h] BYREF unsigned int v13; // [rsp+50h] [rbp-40h] float v14; // [rsp+54h] [rbp-3Ch] unsigned __int64 v15; // [rsp+58h] [rbp-38h] BYREF double v16[6]; // [rsp+60h] [rbp-30h] BYREF v14 = (*(float (__fastcall **)(__int64))(*(_QWORD *)a1 + 1432LL))(a1); v4 = (*(_BYTE *)a3 & 1) == 0; v13 = a2; if ( v4 ) v5 = (const char *)(a3 + 1); else v5 = *(const char **)(a3 + 16); __p[1] = __p; v6 = cocos2d::CCLabelBMFont::create_3(v5, "bigFont.fnt"); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v6->setScale)(v6, 0.30000001); sub_10028CBE0((float *)v16, 0.0, 0.5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))v6->setAnchorPoint)(v6, v16); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 576) + 440LL))( *(_QWORD *)(a1 + 576), v6); sub_10028CBE0((float *)&v15, -100.0, 0.0); sub_10028CCE0(v16, (unsigned __int64 *)(a1 + 940), &v15); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))v6->setPosition)(v6, v16); SetupTriggerPopup::addObjectToPage((SetupTriggerPopup *)a1, v6, *(_DWORD *)(a1 + 948)); LOBYTE(v11) = 4; strcpy((char *)&v11 + 1, "On"); sub_10028CBE0((float *)&v15, 40.0, 0.0); v7 = v13; sub_10028CCE0(v16, (unsigned __int64 *)(a1 + 940), &v15); v8 = (int)v14; SetupTriggerPopup::createCustomToggleValueControl( a1, v7, (int)v14 == 1, 1, &v11, (__int64)v16, 0, *(_DWORD *)(a1 + 948), 0); if ( (v11 & 1) != 0 ) operator delete(__p[0]); LOBYTE(v9) = 6; *(_DWORD *)((char *)&v9 + 1) = 6710863; sub_10028CBE0((float *)&v15, 100.0, 0.0); sub_10028CCE0(v16, (unsigned __int64 *)(a1 + 940), &v15); SetupTriggerPopup::createCustomToggleValueControl( a1, -v7, v8 == -1, 1, &v9, (__int64)v16, 0, *(_DWORD *)(a1 + 948), 0); if ( (v9 & 1) != 0 ) operator delete(v10); *(float *)(a1 + 944) = *(float *)(a1 + 944) + -30.0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source