// // SetupPlatformerEndPopup::init from 0x14041db80 to 0x14041e13d (1469 bytes) // // 3 xrefs: // > SetupPlatformerEndPopup::create @ 0x14041db3e // > @ 0x1406d9470 // > @ 0x1406d947c // // 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 SetupPlatformerEndPopup::init(SetupPlatformerEndPopup *a1, EndTriggerGameObject *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 double ToggleValueControl; // xmm0_8 char 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, 300.0, 240.0, 1); if ( result ) { a1->m_disableTextDelegate = 1; a1->determineStartValues(a1); *((_QWORD *)&v18 + 1) = 100; v19 = 9; v20 = 15; *(_QWORD *)&v18 = 0x6E45207075746553LL; 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(0x170u); *(_QWORD *)&v18 = v5; v19 = 367; v20 = 367; v6 = v5; v7 = "Sets a specific object given by TargetPos to be the end of the level. The player is pulled into" " the end instantly.\n" "SpawnID lets you spawn a group at the end.\n" "Instant teleports the player to the end instantly instead of the default gradual pull.\n" "No Effects disables visual end effects.\n" "No SFX disables end sound effects."; 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); *((_OWORD *)v6 + 5) = *((_OWORD *)v7 + 5); v6[12] = *((_QWORD *)v7 + 12); *((_DWORD *)v6 + 26) = *((_DWORD *)v7 + 26); *((_WORD *)v6 + 54) = *((_WORD *)v7 + 54); *((_BYTE *)v6 + 110) = v7[110]; *((_BYTE *)v5 + 367) = 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, -75.0); cocos2d::CCPoint::operator+(&v24, v16); v13 = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 51, (unsigned int)&v21, (unsigned int)v16, 1061997773, 1, 2, 10, 1, 0, 1176255488, 0, 0, 0, 0, v13); v17 = &v18; *((_QWORD *)&v18 + 1) = 14963; v19 = 10; v20 = 15; *(_QWORD *)&v18 = 0x6F50746567726154LL; cocos2d::CCPoint::CCPoint(1.1446081e24, 75.0); cocos2d::CCPoint::operator+(&v24, v16); LOBYTE(v14) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 71, (unsigned int)&v18, (unsigned int)v16, 1061997773, 1, 2, 10, 1, 0, 1176255488, 0, 0, 0, 0, v14); v17 = &v18; *((_QWORD *)&v18 + 1) = 29556; v19 = 10; v20 = 15; *(_QWORD *)&v18 = 0x6365666645206F4ELL; cocos2d::CCPoint::CCPoint(2566.9565, -90.0); cocos2d::CCPoint::operator+(&v24, v16); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 460, (unsigned int)&v18, (unsigned int)v16, 0, 0, 0, 1065353216); v17 = &v18; v18 = 0; v19 = 6; v20 = 15; strcpy((char *)&v18, "No SFX"); cocos2d::CCPoint::CCPoint(0.0, -90.0); cocos2d::CCPoint::operator+(&v24, v16); ToggleValueControl = SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 461, (unsigned int)&v18, (unsigned int)v16, 0, 0, 0, 1065353216); v17 = &v18; v19 = 7; v20 = 15; v18 = 0x746E6174736E49uLL; cocos2d::CCPoint::CCPoint(*(float *)&ToggleValueControl, 40.0); cocos2d::CCPoint::operator+(&v24, v16); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 487, (unsigned int)&v18, (unsigned int)v16, 0, 0, 0, 1065353216); a1->updateDefaultTriggerValues(a1); a1->m_disableTextDelegate = 0; return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source