// // SetItemIDLayer::init from 0x10009c1a0 to 0x10009c8a9 (1801 bytes) // // 1 xrefs: // > SetItemIDLayer::create @ 0x10009c15b // // 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 // bool __fastcall SetItemIDLayer::init(SetItemIDLayer *a1, EffectGameObject *a2, cocos2d::CCArray *a3) { bool result; // al bool v4; // r15 int v5; // r12d int v6; // r12d char v7; // [rsp+38h] [rbp-168h] BYREF char v8[15]; // [rsp+39h] [rbp-167h] BYREF void *v9; // [rsp+48h] [rbp-158h] char v10; // [rsp+50h] [rbp-150h] BYREF char v11[15]; // [rsp+51h] [rbp-14Fh] BYREF void *v12; // [rsp+60h] [rbp-140h] _QWORD v13[2]; // [rsp+68h] [rbp-138h] BYREF void *v14; // [rsp+78h] [rbp-128h] char v15; // [rsp+80h] [rbp-120h] BYREF _BYTE v16[23]; // [rsp+81h] [rbp-11Fh] BYREF char v17; // [rsp+98h] [rbp-108h] BYREF _BYTE v18[23]; // [rsp+99h] [rbp-107h] BYREF float v19[2]; // [rsp+B0h] [rbp-F0h] BYREF char v20; // [rsp+B8h] [rbp-E8h] BYREF _BYTE v21[23]; // [rsp+B9h] [rbp-E7h] BYREF char v22; // [rsp+D0h] [rbp-D0h] BYREF char v23[15]; // [rsp+D1h] [rbp-CFh] BYREF void *v24; // [rsp+E0h] [rbp-C0h] char v25; // [rsp+E8h] [rbp-B8h] BYREF _BYTE v26[23]; // [rsp+E9h] [rbp-B7h] BYREF char v27; // [rsp+100h] [rbp-A0h] BYREF _BYTE v28[23]; // [rsp+101h] [rbp-9Fh] BYREF char v29; // [rsp+118h] [rbp-88h] BYREF _BYTE v30[23]; // [rsp+119h] [rbp-87h] BYREF char v31; // [rsp+130h] [rbp-70h] BYREF _BYTE v32[23]; // [rsp+131h] [rbp-6Fh] BYREF char v33; // [rsp+148h] [rbp-58h] BYREF char v34[15]; // [rsp+149h] [rbp-57h] BYREF void *v35; // [rsp+158h] [rbp-48h] float v36; // [rsp+164h] [rbp-3Ch] _BYTE v37[8]; // [rsp+168h] [rbp-38h] BYREF _BYTE v38[8]; // [rsp+170h] [rbp-30h] BYREF _BYTE v39[40]; // [rsp+178h] [rbp-28h] BYREF result = SetupTriggerPopup::init(a1, a2, a3, 300.0, 260.0, 1); if ( result ) { v4 = result; SetupTriggerPopup::preSetup(a1); v20 = 26; strcpy(v21, "Counter Label"); SetupTriggerPopup::addTitle(a1, &v20); if ( (v20 & 1) != 0 ) operator delete(*(void **)&v21[15]); v7 = 4; strcpy(v8, "OK"); SetupTriggerPopup::addCloseButton(a1, &v7); if ( (v7 & 1) != 0 ) operator delete(v9); v10 = 8; strcpy(v11, "Help"); v14 = operator new(0x170u); v13[0] = 369; v13[1] = 365; strcpy( (char *)v14, "Displays a set counter value depending on the setting. By default it displays Item ID.\n" "Use Time Counter to make it function as a timer.\n" "MainTime shows the exact game time.\n" "Use Points to show linked collectables.\n" "Attempts displays the current attempt.\n" "Left and Right Align changes the alignment of the display."); SetupTriggerPopup::addHelpButton(a1, &v10, v13, 1.0); if ( (v13[0] & 1) != 0 ) operator delete(v14); if ( (v10 & 1) != 0 ) operator delete(v12); cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v19); sub_10028CBE0(v37, v19[0] * 0.5, 0.5 * v19[1]); v22 = 12; strcpy(v23, "ItemID"); sub_10028CBE0(v39, -60.0, 50.0); sub_10028CCE0(v38, v37); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 80, (unsigned int)&v22, (unsigned int)v38, 1, 3, 6, 1, 0, 0, 0, 2, 0); if ( (v22 & 1) != 0 ) operator delete(v24); v25 = 24; strcpy(v26, "Time\nCounter"); sub_10028CBE0(v39, -60.0, 0.0); sub_10028CCE0(v38, v37); SetupTriggerPopup::createToggleValueControl((_DWORD)a1, 466, (unsigned int)&v25, (unsigned int)v38, 0, 0, 0); if ( (v25 & 1) != 0 ) operator delete(*(void **)&v26[15]); v27 = 24; strcpy(v28, "Seconds\nOnly"); sub_10028CBE0(v39, 60.0, 0.0); sub_10028CCE0(v38, v37); SetupTriggerPopup::createToggleValueControl((_DWORD)a1, 389, (unsigned int)&v27, (unsigned int)v38, 0, 0, 0); if ( (v27 & 1) != 0 ) operator delete(*(void **)&v28[15]); v36 = ((float (__fastcall *)(SetItemIDLayer *, __int64, double, double, double))a1->getValue)( a1, 391, COERCE_DOUBLE(1065353216), 0.0, COERCE_DOUBLE(1120403456)); v29 = 20; strcpy(v30, "Left\nAlign"); sub_10028CBE0(v39, 60.0, 80.0); sub_10028CCE0(v38, v37); v5 = (int)v36; SetupTriggerPopup::createCustomToggleValueControl( (_DWORD)a1, 1, (int)v36 == 1, 1, (unsigned int)&v29, (unsigned int)v38, 0, 0, 0); if ( (v29 & 1) != 0 ) operator delete(*(void **)&v30[15]); v31 = 22; strcpy(v32, "Right\nAlign"); sub_10028CBE0(v39, 60.0, 40.0); sub_10028CCE0(v38, v37); SetupTriggerPopup::createCustomToggleValueControl( (_DWORD)a1, 2, v5 == 2, 1, (unsigned int)&v31, (unsigned int)v38, 0, 0, 0); if ( (v31 & 1) != 0 ) operator delete(*(void **)&v32[15]); v36 = ((float (__fastcall *)(SetItemIDLayer *, __int64))a1->getValue)(a1, 390); v15 = 16; strcpy(v16, "MainTime"); sub_10028CBE0(v39, -90.0, -60.0); sub_10028CCE0(v38, v37); v6 = (int)v36; SetupTriggerPopup::createCustomToggleValueControl( (_DWORD)a1, -1, (int)v36 == -1, 1, (unsigned int)&v15, (unsigned int)v38, 1, 0, 0); if ( (v15 & 1) != 0 ) operator delete(*(void **)&v16[15]); v33 = 12; strcpy(v34, "Points"); sub_10028CBE0(v39, -15.0, -60.0); sub_10028CCE0(v38, v37); SetupTriggerPopup::createCustomToggleValueControl( (_DWORD)a1, -2, v6 == -2, 1, (unsigned int)&v33, (unsigned int)v38, 1, 0, 0); if ( (v33 & 1) != 0 ) operator delete(v35); v17 = 16; strcpy(v18, "Attempts"); sub_10028CBE0(v39, 60.0, -60.0); sub_10028CCE0(v38, v37); SetupTriggerPopup::createCustomToggleValueControl( (_DWORD)a1, -3, v6 == -3, 1, (unsigned int)&v17, (unsigned int)v38, 1, 0, 0); if ( (v17 & 1) != 0 ) operator delete(*(void **)&v18[15]); SetupTriggerPopup::postSetup(a1); return v4; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source