// // SetupPlayerControlPopup::init from 0x140467da0 to 0x14046833f (1439 bytes) // // 3 xrefs: // > SetupPlayerControlPopup::create @ 0x140467d5e // > @ 0x1406db120 // > @ 0x1406db12c // // 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 SetupPlayerControlPopup::init(SetupPlayerControlPopup *a1, PlayerControlGameObject *a2, cocos2d::CCArray *a3) { bool result; // al double v5; // xmm0_8 __int64 v6; // rcx cocos2d::CCDirector *v7; // rax double v8; // xmm0_8 __int128 *v9; // [rsp+48h] [rbp-39h] BYREF __int128 v10; // [rsp+50h] [rbp-31h] BYREF __int64 v11; // [rsp+60h] [rbp-21h] __int64 v12; // [rsp+68h] [rbp-19h] __int128 v13; // [rsp+70h] [rbp-11h] BYREF __int64 v14; // [rsp+80h] [rbp-1h] __int64 v15; // [rsp+88h] [rbp+7h] __int128 *v16; // [rsp+90h] [rbp+Fh] __int128 *v17; // [rsp+98h] [rbp+17h] float v18; // [rsp+A0h] [rbp+1Fh] _BYTE v19[48]; // [rsp+A8h] [rbp+27h] BYREF char v20; // [rsp+100h] [rbp+7Fh] BYREF result = SetupTriggerPopup::init(a1, a2, a3, 320.0, 220.0, 1); if ( result ) { a1->m_disableTextDelegate = 1; a1->determineStartValues(a1); v11 = 14; v12 = 15; strcpy((char *)&v10, "Player Control"); HIBYTE(v10) = 0; SetupTriggerPopup::addTitle(a1, &v10); v10 = 0; v11 = 2; v12 = 15; strcpy((char *)&v10, "OK"); SetupTriggerPopup::addCloseButton(a1, &v10); v9 = &v10; v10 = 0; v11 = 0; v12 = 15; *(_QWORD *)&v10 = sub_14003AA10(0xB0u); v11 = 170; v12 = 175; strcpy( (char *)v10, "Controls player P1 or P2 behavior with a specified setting.\n" "Stop Slide can be used to stop the player from sliding after a force has been applied."); v13 = 0; v14 = 4; v15 = 15; strcpy((char *)&v13, "Help"); v5 = SetupTriggerPopup::addHelpButton(a1, &v13, &v10); SetupTriggerPopup::createMultiTriggerItemsDefault(a1); v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(v7); v8 = cocos2d::CCPoint::CCPoint(*(float *)&v5, v18 * 0.5); cocos2d::CCPoint::CCPoint(*(float *)&v8, -20.0); cocos2d::CCPoint::operator+(v19, &v20); v16 = &v13; v13 = 0; v14 = 2; v15 = 15; strcpy((char *)&v13, "P1"); cocos2d::CCPoint::CCPoint(0.0, -40.0); cocos2d::CCPoint::operator+(&v20, &v9); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 138, (unsigned int)&v13, (unsigned int)&v9, 0, 0, 0, 1065353216); v17 = &v13; v13 = 0; v14 = 2; v15 = 15; strcpy((char *)&v13, "P2"); cocos2d::CCPoint::CCPoint(0.0, 40.0); cocos2d::CCPoint::operator+(&v20, &v9); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 200, (unsigned int)&v13, (unsigned int)&v9, 0, 0, 0, 1065353216); v17 = &v10; *((_QWORD *)&v10 + 1) = 112; v11 = 9; v12 = 15; *(_QWORD *)&v10 = 0x6D754A0A706F7453LL; cocos2d::CCPoint::CCPoint(2.9643018e29, -80.0); cocos2d::CCPoint::operator+(&v20, &v9); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 540, (unsigned int)&v10, (unsigned int)&v9, 0, 0, 0, 1065353216); v17 = &v10; *((_QWORD *)&v10 + 1) = 101; v11 = 9; v12 = 15; *(_QWORD *)&v10 = 0x766F4D0A706F7453LL; cocos2d::CCPoint::CCPoint(2.9643018e29, 0.0); cocos2d::CCPoint::operator+(&v20, &v9); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 541, (unsigned int)&v10, (unsigned int)&v9, 0, 0, 0, 1065353216); v17 = &v13; v14 = 8; v15 = 15; v13 = 0x746F520A706F7453uLL; cocos2d::CCPoint::CCPoint(0.0, 80.0); cocos2d::CCPoint::operator+(&v20, &v9); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 542, (unsigned int)&v13, (unsigned int)&v9, 0, 0, 0, 1065353216); v17 = &v10; *((_QWORD *)&v10 + 1) = 25956; v11 = 10; v12 = 15; *(_QWORD *)&v10 = 0x696C530A706F7453LL; cocos2d::CCPoint::CCPoint(2.9643018e29, -80.0); cocos2d::CCPoint::operator+(&v20, &v9); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 543, (unsigned int)&v10, (unsigned int)&v9, 0, 0, 0, 1065353216); a1->updateDefaultTriggerValues(a1); a1->m_disableTextDelegate = 0; return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source