// // SetupReverbPopup::init from 0x6b0660 to 0x6b0a58 (1016 bytes) // // 1 xrefs: // > SetupReverbPopup::create @ 0x6b0ace // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:56:39 +0000 // GameManager *__fastcall SetupReverbPopup::init(cocos2d::CCPoint **this, SFXTriggerGameObject *a2, cocos2d::CCArray *a3) { GameManager *v4; // r10 cocos2d::CCDirector *v5; // r0 const char *v6; // r2 cocos2d::CCPoint *v7; // r0 int v8; // r5 void (__fastcall *v9)(int, _DWORD *); // r7 const char *v10; // r1 cocos2d::CCSprite *v11; // r7 int v12; // r9 const char *v13; // r1 int v14; // r9 int v15; // r8 int v16; // r11 const char *v17; // r1 int v18; // r6 int v19; // r11 const cocos2d::CCPoint *v20; // r8 void (__fastcall *v21)(int, _BYTE *); // r6 void (__fastcall *v23)(int, _DWORD *); // [sp+14h] [bp-78h] void (__fastcall *v24)(int, _DWORD *); // [sp+14h] [bp-78h] cocos2d::CCPoint *v25; // [sp+18h] [bp-74h] cocos2d::CCPoint *v26; // [sp+18h] [bp-74h] int v27; // [sp+20h] [bp-6Ch] float v28[2]; // [sp+2Ch] [bp-60h] BYREF _BYTE v29[8]; // [sp+34h] [bp-58h] BYREF _BYTE v30[8]; // [sp+3Ch] [bp-50h] BYREF _BYTE v31[8]; // [sp+44h] [bp-48h] BYREF _BYTE v32[8]; // [sp+4Ch] [bp-40h] BYREF int (__fastcall *v33)(cocos2d::CCDictionary **, cocos2d::CCObject *); // [sp+54h] [bp-38h] int v34; // [sp+58h] [bp-34h] _DWORD v35[2]; // [sp+5Ch] [bp-30h] BYREF _DWORD v36[2]; // [sp+64h] [bp-28h] BYREF int v37[3]; // [sp+6Ch] [bp-20h] BYREF int v38; // [sp+78h] [bp-14h] BYREF int v39; // [sp+7Ch] [bp-10h] int v40; // [sp+80h] [bp-Ch] v4 = SetupTriggerPopup::init((SetupTriggerPopup *)this, a2, a3, 320.0, 140.0, (_BYTE *)&dword_0 + 2, 0.0); if ( v4 ) { SetupTriggerPopup::preSetup((SetupTriggerPopup *)this); v38 = 0; v39 = 0; v40 = 0; std::string::__init(&v38, "Edit Global Reverb", 0x12u); SetupTriggerPopup::addTitle((int)this, (unsigned __int8 *)&v38); std::string::~string((int)&v38); v38 = 0; v39 = 0; v40 = 0; std::string::__init(&v38, "OK", 2u); SetupTriggerPopup::addCloseButton((int)this, (int)&v38); std::string::~string((int)&v38); memset(v37, 0, sizeof(v37)); std::string::__init(v37, "Help", 4u); v38 = 0; v39 = 0; v40 = 0; std::string::__init( &v38, "Lets you change the Reverb settings.\n" "The sound engine has one global reverb channel. This means that two sounds with different reverb settings cannot b" "e played simultaneously.", 0xB7u); SetupTriggerPopup::addHelpButton((int)this, (int)v37, (int)&v38, 1065353216); std::string::~string((int)&v38); v5 = (cocos2d::CCDirector *)std::string::~string((int)v37); cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v28); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v29, v28[0] * 0.5, v28[1] * 0.5); v38 = 0; v39 = 0; v40 = 0; std::string::__init(&v38, "Enable", 6u); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v35, (float)(*((float *)this + 139) * 0.5) - 78.0, 24.0 - (float)(*((float *)this + 140) * 0.5)); cocos2d::CCPoint::operator+(v36, v29, v35); SetupTriggerPopup::createToggleValueControl((int)this, 503, (int)&v38, (const cocos2d::CCPoint *)v36, 0, 0, 0, 1.0); std::string::~string((int)&v38); v7 = (cocos2d::CCPoint *)cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Reverb", "goldFont.fnt", v6); *(this + 178) = v7; (*(void (__fastcall **)(_DWORD, cocos2d::CCPoint *, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v7, 1); v8 = (int)*(this + 178); v9 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v8 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v35, 0.0, 5.0); cocos2d::CCPoint::operator+(v36, v29, v35); v9(v8, v36); v11 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_01_001.png", v10); cocos2d::CCSprite::setFlipX(v11, 1); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v11 + 80))(v11, 1061997773); v33 = SetupReverbPopup::onReverb; v34 = 0; v12 = CCMenuItemSpriteExtra::create((int)v11, 0, (int)this, (int)SetupReverbPopup::onReverb, 0); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v12); v23 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v12 + 92); v25 = *(this + 111); v27 = (*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 178) + 96))(*(this + 178)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v32, 100.0, 0.0); cocos2d::CCPoint::operator+(v35, v27, v32); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v36, v25); v23(v12, v36); CCMenuItemSpriteExtra::setSizeMult(v12, 1.4); (*(void (__fastcall **)(int, int))(*(_DWORD *)v12 + 36))(v12, 1); v14 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v13); (*(void (__fastcall **)(int, int))(*(_DWORD *)v14 + 80))(v14, 1061997773); v35[0] = SetupReverbPopup::onReverb; v35[1] = 0; v15 = CCMenuItemSpriteExtra::create(v14, 0, (int)this, (int)SetupReverbPopup::onReverb, 0); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v15); v24 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v15 + 92); v26 = *(this + 111); v16 = (*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 178) + 96))(*(this + 178)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31, -100.0, 0.0); cocos2d::CCPoint::operator+(v32, v16, v31); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v36, v26); v24(v15, v36); CCMenuItemSpriteExtra::setSizeMult(v15, 1.4); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v15 + 36))(v15, 0); SetupReverbPopup::updateReverbLabel((SetupReverbPopup *)this); v18 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_playMusicBtn_001.png", v17); (*(void (__fastcall **)(int, int))(*(_DWORD *)v18 + 80))(v18, 1063675494); v36[0] = SetupReverbPopup::onPlay; v36[1] = 0; v19 = CCMenuItemSpriteExtra::create(v18, 0, (int)this, (int)SetupReverbPopup::onPlay, 0); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v19); v20 = *(this + 111); v21 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v19 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v30, (float)(*((float *)this + 139) * 0.5) - 24.0, (float)(*((float *)this + 140) * 0.5) - 24.0); cocos2d::CCPoint::operator+(v31, v29, v30); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v32, v20); v21(v19, v32); SetupTriggerPopup::postSetup((SetupTriggerPopup *)this); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source