// // SetupPlatformerEndPopup::init from 0xab4fb0 to 0xab547c (1228 bytes) // // 2 xrefs: // > SetupPlatformerEndPopup::create @ 0xab56b4 // > @ 0xc6460 // // 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:00:58 +0000 // __int64 __fastcall SetupPlatformerEndPopup::init( SetupPlatformerEndPopup *this, EndTriggerGameObject *a2, cocos2d::CCArray *a3) { unsigned __int8 v4; // w0 unsigned int v5; // w24 cocos2d::CCDirector *MultiTriggerItemsDefault; // x0 cocos2d::CCDirector *v8; // x0 int v9; // [xsp+8h] [xbp-8h] __int64 v10; // [xsp+78h] [xbp+68h] BYREF _BYTE v11[8]; // [xsp+80h] [xbp+70h] BYREF _BYTE v12[8]; // [xsp+88h] [xbp+78h] BYREF __int64 v13; // [xsp+90h] [xbp+80h] BYREF __int64 v14[2]; // [xsp+98h] [xbp+88h] BYREF void *v15; // [xsp+A8h] [xbp+98h] __int64 v16; // [xsp+B0h] [xbp+A0h] BYREF __int64 v17; // [xsp+B8h] [xbp+A8h] void *v18; // [xsp+C0h] [xbp+B0h] v4 = SetupTriggerPopup::init(this, a2, a3, 300.0, 240.0, 1, 0.0); v5 = v4; if ( v4 ) { SetupTriggerPopup::preSetup(this); v16 = 0; v17 = 0; v18 = nullptr; std::string::__init(&v16, "Setup End", 9u); SetupTriggerPopup::addTitle(this, &v16); if ( (v16 & 1) != 0 ) operator delete(v18); v16 = 0; v17 = 0; v18 = nullptr; std::string::__init(&v16, "OK", 2u); SetupTriggerPopup::addCloseButton(this, &v16); if ( (v16 & 1) != 0 ) operator delete(v18); v14[0] = 0; v14[1] = 0; v15 = nullptr; std::string::__init(v14, "Help", 4u); v16 = 0; v17 = 0; v18 = nullptr; std::string::__init( &v16, "Sets a specific object given by TargetPos to be the end of the level. The player is pulled into th" "e 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.", 0x16Fu); SetupTriggerPopup::addHelpButton(this, v14, &v16, 1.0); if ( (v16 & 1) != 0 ) operator delete(v18); if ( (v14[0] & 1) != 0 ) operator delete(v15); MultiTriggerItemsDefault = (cocos2d::CCDirector *)SetupTriggerPopup::createMultiTriggerItemsDefault(this); v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(MultiTriggerItemsDefault); cocos2d::CCDirector::getWinSize(&v10, v8); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, *(float *)&v10 * 0.5, *((float *)&v10 + 1) * 0.5); v16 = 0; v17 = 0; v18 = nullptr; std::string::__init(&v16, "SpawnID:", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, -75.0, 50.0); cocos2d::CCPoint::operator+(&v13, v11); IDNameInput::create(this, (char *)this + 544, 1, 51, &v16, &v13, 6, 0, 0.8, 0, 0); if ( (v16 & 1) != 0 ) operator delete(v18); v16 = 0; v17 = 0; v18 = nullptr; std::string::__init(&v16, "TargetPos:", 0xAu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, 75.0, 50.0); cocos2d::CCPoint::operator+(&v13, v11); LOBYTE(v9) = 0; IDNameInput::create(this, (char *)this + 544, 1, 71, &v16, &v13, 6, 0, 0.8, 0, v9); if ( (v16 & 1) != 0 ) operator delete(v18); v16 = 0; v17 = 0; v18 = nullptr; std::string::__init(&v16, "No Effects", 0xAu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, -90.0, 0.0); cocos2d::CCPoint::operator+(&v13, v11); SetupTriggerPopup::createToggleValueControl(this, 460, &v16, &v13, 0, 0, 0, 1.0); if ( (v16 & 1) != 0 ) operator delete(v18); v16 = 0; v17 = 0; v18 = nullptr; std::string::__init(&v16, "No SFX", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, -90.0, -30.0); cocos2d::CCPoint::operator+(&v13, v11); SetupTriggerPopup::createToggleValueControl(this, 461, &v16, &v13, 0, 0, 0, 1.0); if ( (v16 & 1) != 0 ) operator delete(v18); v16 = 0; v17 = 0; v18 = nullptr; std::string::__init(&v16, "Instant", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, 40.0, 0.0); cocos2d::CCPoint::operator+(&v13, v11); SetupTriggerPopup::createToggleValueControl(this, 487, &v16, &v13, 0, 0, 0, 1.0); if ( (v16 & 1) != 0 ) operator delete(v18); SetupTriggerPopup::postSetup(this); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source