// // SetupCheckpointPopup::init from 0x140468f90 to 0x1404694e6 (1366 bytes) // // 2 xrefs: // > EditorUI::editObjectSpecial @ 0x14011e355 // > @ 0x1406db150 // // 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=3 bool SetupCheckpointPopup::init(SetupCheckpointPopup *a1, CheckpointGameObject *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 char v12; // [rsp+80h] [rbp-88h] __int64 v13; // [rsp+80h] [rbp-88h] __int64 v14; // [rsp+80h] [rbp-88h] float v15; // [rsp+88h] [rbp-80h] _QWORD v16[2]; // [rsp+90h] [rbp-78h] BYREF __int128 *v17; // [rsp+A0h] [rbp-68h] __int128 v18; // [rsp+A8h] [rbp-60h] BYREF __int64 v19; // [rsp+B8h] [rbp-50h] __int64 v20; // [rsp+C0h] [rbp-48h] __int128 v21; // [rsp+C8h] [rbp-40h] BYREF __int64 v22; // [rsp+D8h] [rbp-30h] __int64 v23; // [rsp+E0h] [rbp-28h] char v24; // [rsp+150h] [rbp+48h] BYREF result = SetupTriggerPopup::init(a1, a2, a3, 380.0, 280.0, 1); if ( result ) { a1->m_disableTextDelegate = 1; a1->determineStartValues(a1); v18 = 0; *(_QWORD *)&v18 = sub_14003AA10(0x20u); v19 = 16; v20 = 31; strcpy((char *)v18, "Setup Checkpoint"); SetupTriggerPopup::addTitle(a1, &v18); v18 = 0; v19 = 2; v20 = 15; strcpy((char *)&v18, "OK"); SetupTriggerPopup::addCloseButton(a1, &v18); v16[0] = &v18; v18 = 0; v19 = 0; v20 = 15; v5 = sub_14003AA10(0x160u); *(_QWORD *)&v18 = v5; v19 = 342; v20 = 351; v6 = v5; v7 = "Checkpoints used when the game type is Platformer.\n" "SpawnID lets you spawn a group when the checkpoint is activated.\n" "TargetPos lets you set a respawn location upon death after the checkpoint. Make sure this group contain" "s one object.\n" "RespawnID lets you spawn a group when the player respawns at this checkpoint."; 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); *((_OWORD *)v6 + 4) = *((_OWORD *)v7 + 4); *((_DWORD *)v6 + 20) = *((_DWORD *)v7 + 20); *((_WORD *)v6 + 42) = *((_WORD *)v7 + 42); *((_BYTE *)v5 + 342) = 0; v21 = 0; v22 = 4; v23 = 15; strcpy((char *)&v21, "Help"); v9 = SetupTriggerPopup::addHelpButton(a1, &v21, &v18); SetupTriggerPopup::createMultiTriggerItemsDefault(a1); v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10); cocos2d::CCDirector::getWinSize(v11); cocos2d::CCPoint::CCPoint(*(float *)&v9, v15 * 0.5); v16[1] = &v21; v22 = 8; v23 = 15; v21 = 0x3A44496E77617053uLL; cocos2d::CCPoint::CCPoint(0.0, -80.0); cocos2d::CCPoint::operator+(&v24, v16); v12 = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 51, (unsigned int)&v21, (unsigned int)v16, 1061997773, 1, 2, 10, 1, 0, 1176255488, 0, 0, 0, 0, v12); v17 = &v18; *((_QWORD *)&v18 + 1) = 14963; v19 = 10; v20 = 15; *(_QWORD *)&v18 = 0x6F50746567726154LL; cocos2d::CCPoint::CCPoint(1.1446081e24, 80.0); cocos2d::CCPoint::operator+(&v24, v16); LOBYTE(v13) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 71, (unsigned int)&v18, (unsigned int)v16, 1061997773, 1, 2, 10, 1, 0, 1176255488, 0, 0, 0, 0, v13); v17 = &v18; *((_QWORD *)&v18 + 1) = 14916; v19 = 10; v20 = 15; *(_QWORD *)&v18 = 0x496E776170736552LL; cocos2d::CCPoint::CCPoint(3.0130938e29, 80.0); cocos2d::CCPoint::operator+(&v24, v16); LOBYTE(v14) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 448, (unsigned int)&v18, (unsigned int)v16, 1061997773, 1, 2, 10, 1, 0, 1176255488, 0, 0, 0, 0, v14); v17 = &v18; *((_QWORD *)&v18 + 1) = 29551; v19 = 10; v20 = 15; *(_QWORD *)&v18 = 0x5020726579616C50LL; cocos2d::CCPoint::CCPoint(7.3153977e34, -80.0); cocos2d::CCPoint::operator+(&v24, v16); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 138, (unsigned int)&v18, (unsigned int)v16, 1, 0, 0, 1065353216); a1->updateDefaultTriggerValues(a1); a1->m_disableTextDelegate = 0; return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source