// // SetupForceBlockPopup::init from 0x140470ff0 to 0x14047170a (1818 bytes) // // 3 xrefs: // > SetupForceBlockPopup::create @ 0x140470fae // > @ 0x1406db2dc // > @ 0x1406db2e8 // // 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=2 bool SetupForceBlockPopup::init(SetupForceBlockPopup *a1, ForceBlockGameObject *a2, cocos2d::CCArray *a3) { bool result; // al _QWORD *v5; // r9 _QWORD *v6; // rcx const char *v7; // rdx __int64 v8; // r8 double v9; // xmm0_8 __int64 v10; // rcx cocos2d::CCDirector *v11; // rax int v12; // eax int v13; // eax int v14; // eax int v15; // eax int v16; // eax double ToggleValueControl; // xmm0_8 int v18; // eax bool v19; // di __int64 v20; // [rsp+80h] [rbp-88h] __int64 v21; // [rsp+80h] [rbp-88h] __int64 v22; // [rsp+80h] [rbp-88h] __int128 v23; // [rsp+A0h] [rbp-68h] BYREF __int64 v24; // [rsp+B0h] [rbp-58h] __int64 v25; // [rsp+B8h] [rbp-50h] __int128 v26; // [rsp+C0h] [rbp-48h] BYREF __int64 v27; // [rsp+D0h] [rbp-38h] __int64 v28; // [rsp+D8h] [rbp-30h] float v29; // [rsp+170h] [rbp+68h] result = SetupTriggerPopup::init(a1, a2, a3, 380.0, 270.0, 1); if ( result ) { a1->m_disableTextDelegate = 1; a1->determineStartValues(a1); v23 = 0; *(_QWORD *)&v23 = sub_14003AA10(0x20u); v24 = 17; v25 = 31; strcpy((char *)v23, "Setup Force Block"); SetupTriggerPopup::addTitle(a1, &v23); v23 = 0; v24 = 2; v25 = 15; strcpy((char *)&v23, "OK"); SetupTriggerPopup::addCloseButton(a1, &v23); v23 = 0; v24 = 0; v25 = 15; v5 = sub_14003AA10(0x150u); *(_QWORD *)&v23 = v5; v24 = 333; v25 = 335; v6 = v5; v7 = "Force is how much force is applied upon player collision.\n" "Blocks with the same Force ID do not stack.\n" "Relative makes force direction based on angle between player and object center.\n" "UseRange lets you set a range to apply force from based on player position. Range calculation is based " "on block radius."; v8 = 2; do { *(_OWORD *)v6 = *(_OWORD *)v7; *((_OWORD *)v6 + 1) = *((_OWORD *)v7 + 1); *((_OWORD *)v6 + 2) = *((_OWORD *)v7 + 2); *((_OWORD *)v6 + 3) = *((_OWORD *)v7 + 3); *((_OWORD *)v6 + 4) = *((_OWORD *)v7 + 4); *((_OWORD *)v6 + 5) = *((_OWORD *)v7 + 5); *((_OWORD *)v6 + 6) = *((_OWORD *)v7 + 6); v6 += 16; *((_OWORD *)v6 - 1) = *((_OWORD *)v7 + 7); v7 += 128; --v8; } while ( v8 ); *(_OWORD *)v6 = *(_OWORD *)v7; *((_OWORD *)v6 + 1) = *((_OWORD *)v7 + 1); *((_OWORD *)v6 + 2) = *((_OWORD *)v7 + 2); *((_OWORD *)v6 + 3) = *((_OWORD *)v7 + 3); v6[8] = *((_QWORD *)v7 + 8); *((_DWORD *)v6 + 18) = *((_DWORD *)v7 + 18); *((_BYTE *)v6 + 76) = v7[76]; *((_BYTE *)v5 + 333) = 0; v26 = 0; v27 = 4; v28 = 15; strcpy((char *)&v26, "Help"); v9 = SetupTriggerPopup::addHelpButton(a1, &v26, &v23); v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10); cocos2d::CCDirector::getWinSize(v11); cocos2d::CCPoint::CCPoint(*(float *)&v9, v29 * 0.5); v23 = 0; v24 = 6; v25 = 15; strcpy((char *)&v23, "Force:"); cocos2d::CCPoint::CCPoint(0.0, v29 * 0.5); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 149, (unsigned int)&v23, v12, 1061997773, 0, 1, 4, 0, 0, 1084227584, 0, 149, 0, 3, 0, &v23); *((_QWORD *)&v23 + 1) = 58; v24 = 9; v25 = 15; *(_QWORD *)&v23 = 0x6563726F466E694DLL; cocos2d::CCPoint::CCPoint(15258.325, (float)(v29 * 0.5) - 80.0); LOBYTE(v20) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 526, (unsigned int)&v23, v13, 1061997773, 0, 1, 4, 0, 0, 1084227584, 0, 529, 0, 3, v20); *((_QWORD *)&v23 + 1) = 58; v24 = 9; v25 = 15; *(_QWORD *)&v23 = 0x6563726F4678614DLL; cocos2d::CCPoint::CCPoint(15896.325, (float)(v29 * 0.5) + 80.0); LOBYTE(v21) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 527, (unsigned int)&v23, v14, 1061997773, 0, 1, 4, 0, 0, 1084227584, 0, 529, 0, 3, v21); v27 = 8; v28 = 15; v26 = 0x65766974616C6552uLL; cocos2d::CCPoint::CCPoint(0.0, (float)(v29 * 0.5) - 80.0); SetupTriggerPopup::createToggleValueControl((_DWORD)a1, 528, (unsigned int)&v26, v15, 0, 0, 0, 1065353216); v23 = 0; v24 = 5; v25 = 15; strcpy((char *)&v23, "Range"); cocos2d::CCPoint::CCPoint(0.0, (float)(v29 * 0.5) + 50.0); ToggleValueControl = SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 529, (unsigned int)&v23, v16, 0, 0, 0, 1065353216); v24 = 7; v25 = 15; v23 = 0x44496563726F46uLL; cocos2d::CCPoint::CCPoint(*(float *)&ToggleValueControl, v29 * 0.5); LOBYTE(v22) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 530, (unsigned int)&v23, v18, 1061997773, 1, 2, 10, 1, 0, 1176255488, 0, 0, 0, 0, v22); v19 = a1->getValue(a1, 529) != 0.0; a1->toggleGroup(a1, 529, v19); a1->toggleGroup(a1, 149, !v19); a1->updateDefaultTriggerValues(a1); a1->m_disableTextDelegate = 0; return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source