// // SetupOptionsTriggerPopup::init from 0xb19cc0 to 0xb1a3a8 (1768 bytes) // // 2 xrefs: // > SetupOptionsTriggerPopup::create @ 0xb1a5dc // > @ 0x103d08 // // 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:01:33 +0000 // __int64 __fastcall SetupOptionsTriggerPopup::init( SetupOptionsTriggerPopup *this, GameOptionsTrigger *a2, cocos2d::CCArray *a3) { unsigned __int8 v4; // w0 unsigned int v5; // w22 cocos2d::CCDirector *MultiTriggerItemsDefaultHorizontal; // x0 cocos2d::CCDirector *v8; // x0 float v9; // s0 __int64 v10; // [xsp+70h] [xbp+40h] BYREF _BYTE v11[8]; // [xsp+78h] [xbp+48h] BYREF _BYTE v12[8]; // [xsp+80h] [xbp+50h] BYREF __int64 v13[2]; // [xsp+88h] [xbp+58h] BYREF void *v14; // [xsp+98h] [xbp+68h] __int64 v15; // [xsp+A0h] [xbp+70h] BYREF __int64 v16; // [xsp+A8h] [xbp+78h] void *v17; // [xsp+B0h] [xbp+80h] v4 = SetupTriggerPopup::init(this, a2, a3, 420.0, 300.0, 1, 0.0); v5 = v4; if ( v4 ) { SetupTriggerPopup::preSetup(this); v15 = 0; v16 = 0; v17 = nullptr; std::string::__init(&v15, "Setup Options Trigger", 0x15u); SetupTriggerPopup::addTitle(this, &v15); if ( (v15 & 1) != 0 ) operator delete(v17); v15 = 0; v16 = 0; v17 = nullptr; std::string::__init(&v15, "OK", 2u); SetupTriggerPopup::addCloseButton(this, &v15); if ( (v15 & 1) != 0 ) operator delete(v17); v13[0] = 0; v13[1] = 0; v14 = nullptr; std::string::__init(v13, "Help", 4u); v15 = 0; v16 = 0; v17 = nullptr; std::string::__init( &v15, "Lets you change various options.\n" "Streak Additive toggles blending of player trail and particles.\n" "Unlink Dual Gravity allows dual players to switch gravity independently. By default they switch together.\n" "Disable P1 and P2 Controls allows you to toggle controls for a specific player.\n" "Audio on Death continues to play music and SFX after the player dies.\n" "Boost Slide increases sliding after a force is applied.", 0x1C8u); SetupTriggerPopup::addHelpButton(this, v13, &v15, 1.0); if ( (v15 & 1) != 0 ) operator delete(v17); if ( (v13[0] & 1) != 0 ) operator delete(v14); MultiTriggerItemsDefaultHorizontal = (cocos2d::CCDirector *)SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(this); v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(MultiTriggerItemsDefaultHorizontal); cocos2d::CCDirector::getWinSize(&v10, v8); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v11, (float)(*(float *)&v10 * 0.5) + -30.0, (float)(*((float *)&v10 + 1) * 0.5) + 100.0); cocos2d::CCPoint::operator=((char *)this + 1012, v11); *((_DWORD *)this + 255) = 0; v15 = 0; v16 = 0; v17 = nullptr; std::string::__init(&v15, "Streak\nAdditive", 0xFu); SetupOptionsTriggerPopup::addOption((int *)this, 159, (char *)&v15); if ( (v15 & 1) != 0 ) operator delete(v17); v15 = 0; v16 = 0; v17 = nullptr; std::string::__init(&v15, "Hide Ground", 0xBu); SetupOptionsTriggerPopup::addOption((int *)this, 161, (char *)&v15); if ( (v15 & 1) != 0 ) operator delete(v17); v15 = 0; v16 = 0; v17 = nullptr; std::string::__init(&v15, "Hide MG", 7u); SetupOptionsTriggerPopup::addOption((int *)this, 195, (char *)&v15); if ( (v15 & 1) != 0 ) operator delete(v17); v15 = 0; v16 = 0; v17 = nullptr; std::string::__init(&v15, "Hide P1", 7u); SetupOptionsTriggerPopup::addOption((int *)this, 162, (char *)&v15); if ( (v15 & 1) != 0 ) operator delete(v17); v15 = 0; v16 = 0; v17 = nullptr; std::string::__init(&v15, "Hide P2", 7u); SetupOptionsTriggerPopup::addOption((int *)this, 163, (char *)&v15); if ( (v15 & 1) != 0 ) operator delete(v17); v15 = 0; v16 = 0; v17 = nullptr; std::string::__init(&v15, "Disable P1\nControls", 0x13u); SetupOptionsTriggerPopup::addOption((int *)this, 165, (char *)&v15); if ( (v15 & 1) != 0 ) operator delete(v17); v15 = 0; v16 = 0; v17 = nullptr; std::string::__init(&v15, "Disable P2\nControls", 0x13u); SetupOptionsTriggerPopup::addOption((int *)this, 199, (char *)&v15); if ( (v15 & 1) != 0 ) operator delete(v17); cocos2d::CCPoint::operator=((char *)this + 1012, v11); v15 = 0; ++*((_DWORD *)this + 255); v16 = 0; v17 = nullptr; std::string::__init(&v15, "Unlink Dual\nGravity", 0x13u); SetupOptionsTriggerPopup::addOption((int *)this, 160, (char *)&v15); if ( (v15 & 1) != 0 ) operator delete(v17); v15 = 0; v16 = 0; v17 = nullptr; std::string::__init(&v15, "Hide\nAttempts", 0xDu); SetupOptionsTriggerPopup::addOption((int *)this, 532, (char *)&v15); if ( (v15 & 1) != 0 ) operator delete(v17); v15 = 0; v16 = 0; v17 = nullptr; std::string::__init(&v15, "Audio on\nDeath", 0xEu); SetupOptionsTriggerPopup::addOption((int *)this, 575, (char *)&v15); if ( (v15 & 1) != 0 ) operator delete(v17); v15 = 0; v16 = 0; v17 = nullptr; std::string::__init(&v15, "No Death\nSFX", 0xCu); SetupOptionsTriggerPopup::addOption((int *)this, 576, (char *)&v15); if ( (v15 & 1) != 0 ) operator delete(v17); v15 = 0; v16 = 0; v17 = nullptr; std::string::__init(&v15, "Edit Respawn\nTime", 0x11u); SetupOptionsTriggerPopup::addOption((int *)this, 573, (char *)&v15); if ( (v15 & 1) != 0 ) operator delete(v17); v15 = 0; v16 = 0; v17 = nullptr; std::string::__init(&v15, "Boost Slide", 0xBu); SetupOptionsTriggerPopup::addOption((int *)this, 593, (char *)&v15); if ( (v15 & 1) != 0 ) operator delete(v17); v15 = 0; v16 = 0; v17 = nullptr; std::string::__init(&v15, "Respawn Time", 0xCu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, *(float *)&v10 * 0.5, *((float *)this + 254) - 5.0); SetupTriggerPopup::createValueControlAdvanced(this, 574, &v15, v12, 0, 1, 10, 0, 0.8, 1.0, 10.0, 1, 0, 1, 1, 0); if ( (v15 & 1) != 0 ) operator delete(v17); SetupTriggerPopup::toggleLimitValue(this, 574, 1); v9 = (float)(*((float *)this + 183) * 0.5) + 15.0; *((float *)this + 254) = *((float *)this + 254) - 30.0; SetupTriggerPopup::createPageButtons(this, v9, 1); SetupTriggerPopup::goToPage(this, 0, 0); SetupTriggerPopup::postSetup(this); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source