// // SetupPlayerControlPopup::init from 0xb72e78 to 0xb733b8 (1344 bytes) // // 2 xrefs: // > SetupPlayerControlPopup::create @ 0xb735ec // > @ 0xaed90 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:02:21 +0000 // __int64 __fastcall SetupPlayerControlPopup::init( SetupPlayerControlPopup *this, PlayerControlGameObject *a2, cocos2d::CCArray *a3) { unsigned __int8 v4; // w0 unsigned int v5; // w25 __int64 v7; // x2 __int64 v8; // x3 __int64 v9; // x4 __int64 v10; // x5 const char *v11; // x6 cocos2d::CCDirector *MultiTriggerItemsDefault; // x0 cocos2d::CCDirector *v13; // x0 __int64 v14; // [xsp+60h] [xbp+60h] BYREF _BYTE v15[8]; // [xsp+68h] [xbp+68h] BYREF __int64 v16; // [xsp+70h] [xbp+70h] BYREF _BYTE v17[8]; // [xsp+78h] [xbp+78h] BYREF __int64 v18; // [xsp+80h] [xbp+80h] BYREF __int64 v19[2]; // [xsp+88h] [xbp+88h] BYREF void *v20; // [xsp+98h] [xbp+98h] __int64 v21; // [xsp+A0h] [xbp+A0h] BYREF __int64 v22; // [xsp+A8h] [xbp+A8h] void *v23; // [xsp+B0h] [xbp+B0h] v4 = SetupTriggerPopup::init(this, a2, a3, 320.0, 220.0, 1u, 0.0); v5 = v4; if ( v4 ) { SetupTriggerPopup::preSetup(this); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "Player Control", 0xEu); SetupTriggerPopup::addTitle((__int64)this, (__int64)&v21); if ( (v21 & 1) != 0 ) operator delete(v23); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "OK", 2u); SetupTriggerPopup::addCloseButton((__int64)this, (__int64)&v21, v7, v8, v9, v10, v11); if ( (v21 & 1) != 0 ) operator delete(v23); v19[0] = 0; v19[1] = 0; v20 = nullptr; std::string::__init(v19, "Help", 4u); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init( &v21, "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.", 0xAAu); SetupTriggerPopup::addHelpButton((__int64)this, (char *)v19, (char *)&v21, 1.0); if ( (v21 & 1) != 0 ) operator delete(v23); if ( (v19[0] & 1) != 0 ) operator delete(v20); MultiTriggerItemsDefault = (cocos2d::CCDirector *)SetupTriggerPopup::createMultiTriggerItemsDefault(this); v13 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(MultiTriggerItemsDefault); cocos2d::CCDirector::getWinSize(&v14, v13); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, *(float *)&v14 * 0.5, *((float *)&v14 + 1) * 0.5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v18, -20.0, 40.0); cocos2d::CCPoint::operator+(&v16, v15); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "P1", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, -40.0, 20.0); cocos2d::CCPoint::operator+(&v18, &v16); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x8Au, &v21, (const cocos2d::CCPoint *)&v18, 0, 0, 0, 1.0); if ( (v21 & 1) != 0 ) operator delete(v23); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "P2", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, 40.0, 20.0); cocos2d::CCPoint::operator+(&v18, &v16); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0xC8u, &v21, (const cocos2d::CCPoint *)&v18, 0, 0, 0, 1.0); if ( (v21 & 1) != 0 ) operator delete(v23); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "Stop\nJump", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, -80.0, -20.0); cocos2d::CCPoint::operator+(&v18, &v16); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x21Cu, &v21, (const cocos2d::CCPoint *)&v18, 0, 0, 0, 1.0); if ( (v21 & 1) != 0 ) operator delete(v23); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "Stop\nMove", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, 0.0, -20.0); cocos2d::CCPoint::operator+(&v18, &v16); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x21Du, &v21, (const cocos2d::CCPoint *)&v18, 0, 0, 0, 1.0); if ( (v21 & 1) != 0 ) operator delete(v23); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "Stop\nRot", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, 80.0, -20.0); cocos2d::CCPoint::operator+(&v18, &v16); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x21Eu, &v21, (const cocos2d::CCPoint *)&v18, 0, 0, 0, 1.0); if ( (v21 & 1) != 0 ) operator delete(v23); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "Stop\nSlide", 0xAu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, -80.0, -60.0); cocos2d::CCPoint::operator+(&v18, &v16); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x21Fu, &v21, (const cocos2d::CCPoint *)&v18, 0, 0, 0, 1.0); if ( (v21 & 1) != 0 ) operator delete(v23); SetupTriggerPopup::postSetup(this); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source