// // SetupSFXPopup::init from 0x140447270 to 0x1404484c2 (4690 bytes) // // 2 xrefs: // > SetupSFXPopup::create @ 0x14044721f // > @ 0x1406da640 // // 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 SetupSFXPopup::init(SetupSFXPopup *a1, SFXTriggerGameObject *a2, cocos2d::CCArray *a3) { bool result; // al _QWORD *v5; // r9 _QWORD *v6; // rcx const char *v7; // rdx __int64 v8; // r8 double v9; // xmm0_8 __int64 v10; // rcx cocos2d::CCDirector *v11; // rax double v12; // xmm0_8 double ValueControlAdvanced; // xmm0_8 int v14; // r9d int v15; // edx int v16; // r9d int v17; // r9d struct cocos2d::CCSprite *v18; // rbx CCMenuItemSpriteExtra *v19; // rdi float v20; // xmm0_4 CCMenuItemSpriteExtra_vtbl *v21; // rbx struct cocos2d::CCPoint v22; // rax int v23; // r8d float v24; // xmm0_4 char v25; // [rsp+80h] [rbp-88h] __int64 v26; // [rsp+80h] [rbp-88h] __int64 v27; // [rsp+80h] [rbp-88h] __int64 v28; // [rsp+80h] [rbp-88h] __int64 v29; // [rsp+80h] [rbp-88h] __int64 v30; // [rsp+80h] [rbp-88h] __int64 v31; // [rsp+80h] [rbp-88h] __int64 v32; // [rsp+80h] [rbp-88h] __int64 v33; // [rsp+80h] [rbp-88h] __int128 v34; // [rsp+88h] [rbp-80h] BYREF __int64 v35; // [rsp+98h] [rbp-70h] __int64 v36; // [rsp+A0h] [rbp-68h] __int128 *v37; // [rsp+A8h] [rbp-60h] BYREF __int128 *v38; // [rsp+B0h] [rbp-58h] __int128 v39; // [rsp+B8h] [rbp-50h] BYREF __int64 v40; // [rsp+C8h] [rbp-40h] __int64 v41; // [rsp+D0h] [rbp-38h] _BYTE v42[8]; // [rsp+D8h] [rbp-30h] BYREF _BYTE v43[8]; // [rsp+E0h] [rbp-28h] BYREF float v44; // [rsp+E8h] [rbp-20h] __int128 *v45; // [rsp+1A0h] [rbp+98h] BYREF result = SetupTriggerPopup::init(a1, a2, a3, 380.0, 280.0, 1); if ( result ) { a1->m_disableTextDelegate = 1; a1->determineStartValues(a1); v35 = 11; v36 = 15; *(_QWORD *)&v34 = 0x6769725420584653LL; *((_QWORD *)&v34 + 1) = 7497063; SetupTriggerPopup::addTitle(a1, &v34); v34 = 0; v35 = 2; v36 = 15; strcpy((char *)&v34, "OK"); SetupTriggerPopup::addCloseButton(a1, &v34); v45 = &v34; v34 = 0; v35 = 0; v36 = 15; v5 = sub_14003AA10(0x1A0u); *(_QWORD *)&v34 = v5; v35 = 409; v36 = 415; v6 = v5; v7 = "Lets you start a specified sound effect (browser top right).\n" "Unique ID is used to refer to a specific sound effect in the level while SFXGroup refers to mul" "tiple.\n" "Start, End, FadeIn, and FadeOut are in milliseconds.\n" "Ignore Volume Test does not ignore sound effects regardless of whether any volume setting is 0.\n" "Page 4 lets you change the volume depending on proximity."; v8 = 3; do { *(_OWORD *)v6 = *(_OWORD *)v7; *((_OWORD *)v6 + 1) = *((_OWORD *)v7 + 1); *((_OWORD *)v6 + 2) = *((_OWORD *)v7 + 2); *((_OWORD *)v6 + 3) = *((_OWORD *)v7 + 3); *((_OWORD *)v6 + 4) = *((_OWORD *)v7 + 4); *((_OWORD *)v6 + 5) = *((_OWORD *)v7 + 5); *((_OWORD *)v6 + 6) = *((_OWORD *)v7 + 6); v6 += 16; *((_OWORD *)v6 - 1) = *((_OWORD *)v7 + 7); v7 += 128; --v8; } while ( v8 ); *(_OWORD *)v6 = *(_OWORD *)v7; v6[2] = *((_QWORD *)v7 + 2); *((_BYTE *)v6 + 24) = v7[24]; *((_BYTE *)v5 + 409) = 0; v39 = 0; v40 = 4; v41 = 15; strcpy((char *)&v39, "Help"); v9 = SetupTriggerPopup::addHelpButton(a1, &v39, &v34); SetupTriggerPopup::createMultiTriggerItemsDefault(a1); a1->m_disableSliderDelegate = 1; v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10); cocos2d::CCDirector::getWinSize(v11); v12 = cocos2d::CCPoint::CCPoint(*(float *)&v9, v44 * 0.5); cocos2d::CCPoint::CCPoint(*(float *)&v12, v44 * 0.5); v37 = &v34; v34 = 0; v35 = 6; v36 = 15; strcpy((char *)&v34, "Speed:"); cocos2d::CCPoint::CCPoint(0.0, -91.0); cocos2d::CCPoint::operator+(v42, &v45); v25 = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 404, (unsigned int)&v34, (unsigned int)&v45, 1059481190, 0, 2, 6, 0, -1052770304, 1094713344, 0, 0, 1, 2, v25); v38 = &v34; v34 = 0; v35 = 6; v36 = 15; strcpy((char *)&v34, "Pitch:"); cocos2d::CCPoint::CCPoint(0.0, 91.0); cocos2d::CCPoint::operator+(v42, &v45); LOBYTE(v26) = 0; ValueControlAdvanced = SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 405, (unsigned int)&v34, (unsigned int)&v45, 1059481190, 0, 2, 6, 0, -1052770304, 1094713344, 0, 0, 1, 2, v26); v38 = &v34; v35 = 7; v36 = 15; v34 = 0x3A656D756C6F56uLL; cocos2d::CCPoint::CCPoint(*(float *)&ValueControlAdvanced, -91.0); cocos2d::CCPoint::operator+(v42, &v45); LOBYTE(v27) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 406, (unsigned int)&v34, (unsigned int)&v45, 1059481190, 0, 1, 6, 0, 0, 0x40000000, 0, 0, 1, 2, v27); LODWORD(v45) = 404; *(_BYTE *)sub_1400CDBF0((__int64 *)&a1->m_shouldLimitValues, (int *)&v45) = 1; LODWORD(v45) = 405; *(_BYTE *)sub_1400CDBF0((__int64 *)&a1->m_shouldLimitValues, (int *)&v45) = 1; LODWORD(v45) = 406; *(_BYTE *)sub_1400CDBF0((__int64 *)&a1->m_shouldLimitValues, (int *)&v45) = 1; v38 = &v34; v34 = 0; v35 = 6; v36 = 15; strcpy((char *)&v34, "Reverb"); cocos2d::CCPoint::CCPoint(0.0, 21.0); cocos2d::CCPoint::operator+(v42, &v45); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 407, (unsigned int)&v34, (unsigned int)&v45, 0, 0, 0, 1065353216); v38 = &v34; v34 = 0; v35 = 3; v36 = 15; LODWORD(v34) = 5523014; cocos2d::CCPoint::CCPoint(0.0, 127.0); cocos2d::CCPoint::operator+(v42, &v45); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 412, (unsigned int)&v34, (unsigned int)&v45, 0, 0, 0, 1065353216); v38 = &v39; v39 = 0; v40 = 4; v41 = 15; strcpy((char *)&v39, "Loop"); cocos2d::CCPoint::CCPoint(0.0, 21.0); cocos2d::CCPoint::operator+(v42, &v45); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 413, (unsigned int)&v39, (unsigned int)&v45, 0, 0, 0, 1065353216); v38 = &v39; v40 = 8; v41 = 15; v39 = 0x64616F6C0A657250uLL; cocos2d::CCPoint::CCPoint(0.0, 127.0); cocos2d::CCPoint::operator+(v42, &v45); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 433, (unsigned int)&v39, (unsigned int)&v45, 0, 0, 0, 1065353216); v38 = &v34; v34 = 0; v35 = 0; v36 = 15; *(_QWORD *)&v34 = sub_14003AA10(0x20u); v35 = 19; v36 = 31; strcpy((char *)v34, "GJ_plus3Btn_001.png"); cocos2d::CCPoint::CCPoint(2.7641981e29, 94.0); cocos2d::CCPoint::operator+(v42, &v45); SetupTriggerPopup::createPlusButton((int)a1, 2, (int)&v45, v14, &v34, 0, 0); SetupAudioTriggerPopup::addTimeControls(a1, v15, 10.0); v38 = &v34; *((_QWORD *)&v34 + 1) = 14916; v35 = 10; v36 = 15; *(_QWORD *)&v34 = 0x4920657571696E55LL; cocos2d::CCPoint::CCPoint(1.1558942e30, -50.0); cocos2d::CCPoint::operator+(v43, &v45); LOBYTE(v28) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 416, (unsigned int)&v34, (unsigned int)&v45, 1059481190, 1, 3, 10, 1, 0, 1120403456, 2, 0, 0, 2, v28); v38 = &v39; v40 = 8; v41 = 15; v39 = 0x657571696E557349uLL; cocos2d::CCPoint::CCPoint(0.0, 50.0); cocos2d::CCPoint::operator+(v43, &v45); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 415, (unsigned int)&v39, (unsigned int)&v45, 0, 2, 0, 1065353216); v38 = &v34; *((_QWORD *)&v34 + 1) = 58; v35 = 9; v36 = 15; *(_QWORD *)&v34 = 0x70756F7247584653LL; cocos2d::CCPoint::CCPoint(55366.324, -50.0); cocos2d::CCPoint::operator+(v43, &v45); LOBYTE(v29) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 455, (unsigned int)&v34, (unsigned int)&v45, 1059481190, 1, 2, 6, 1, 0, 1148846080, 2, 0, 0, 2, v29); v38 = &v39; v40 = 8; v41 = 15; v39 = 0x656469727265764FuLL; cocos2d::CCPoint::CCPoint(0.0, 50.0); cocos2d::CCPoint::operator+(v43, &v45); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 420, (unsigned int)&v39, (unsigned int)&v45, 0, 2, 0, 1065353216); v38 = &v34; v34 = 0; v35 = 0; v36 = 15; *(_QWORD *)&v34 = sub_14003AA10(0x20u); v35 = 18; v36 = 31; strcpy((char *)v34, "Ignore\nVolume\nTest"); cocos2d::CCPoint::CCPoint(7.3782296e28, 50.0); cocos2d::CCPoint::operator+(v43, &v45); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 489, (unsigned int)&v34, (unsigned int)&v45, 0, 2, 0, 1065353216); v38 = &v34; v35 = 12; v36 = 15; strcpy((char *)&v34, "MinInterval:"); BYTE13(v34) = 0; HIWORD(v34) = 0; cocos2d::CCPoint::CCPoint(976532.81, -50.0); cocos2d::CCPoint::operator+(v43, &v45); LOBYTE(v30) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 434, (unsigned int)&v34, (unsigned int)&v45, 1059481190, 0, 1, 6, 0, 0, 1065353216, 2, 0, 0, 2, v30); v38 = &v39; v39 = 0; v40 = 0; v41 = 15; LOBYTE(v39) = 0; cocos2d::CCPoint::CCPoint(0.0, 10.0); cocos2d::CCPoint::operator+(v43, &v45); SetupTriggerPopup::createPlusButton((int)a1, 0, (int)&v45, v16, &v39, 2, 0); v38 = &v39; v39 = 0; v40 = 0; v41 = 15; LOBYTE(v39) = 0; cocos2d::CCPoint::CCPoint(0.0, 10.0); cocos2d::CCPoint::operator+(v43, &v45); SetupTriggerPopup::createPlusButton((int)a1, 1, (int)&v45, v17, &v39, 2, 0); SetupAudioTriggerPopup::addProxVolControls(a1, 3); v38 = &v39; v40 = 8; v41 = 15; v39 = 0x2D2B206465657053uLL; cocos2d::CCPoint::CCPoint(0.0, -91.0); cocos2d::CCPoint::operator+(v42, &v45); LOBYTE(v31) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 596, (unsigned int)&v39, (unsigned int)&v45, 1059481190, 0, 2, 6, 0, 0, 1094713344, 4, 0, 1, 2, v31); v38 = &v39; v40 = 8; v41 = 15; v39 = 0x2D2B206863746950uLL; cocos2d::CCPoint::CCPoint(0.0, 91.0); cocos2d::CCPoint::operator+(v42, &v45); LOBYTE(v32) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 597, (unsigned int)&v39, (unsigned int)&v45, 1059481190, 0, 2, 6, 0, 0, 1094713344, 4, 0, 1, 2, v32); v38 = &v34; *((_QWORD *)&v34 + 1) = 45; v35 = 9; v36 = 15; *(_QWORD *)&v34 = 0x2B20656D756C6F56LL; cocos2d::CCPoint::CCPoint(2.9971685e32, -91.0); cocos2d::CCPoint::operator+(v42, &v45); LOBYTE(v33) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 598, (unsigned int)&v34, (unsigned int)&v45, 1059481190, 0, 1, 6, 0, 0, 1065353216, 4, 0, 1, 2, v33); LODWORD(v45) = 596; *(_BYTE *)sub_1400CDBF0((__int64 *)&a1->m_shouldLimitValues, (int *)&v45) = 1; LODWORD(v45) = 597; *(_BYTE *)sub_1400CDBF0((__int64 *)&a1->m_shouldLimitValues, (int *)&v45) = 1; LODWORD(v45) = 598; *(_BYTE *)sub_1400CDBF0((__int64 *)&a1->m_shouldLimitValues, (int *)&v45) = 1; v38 = &v34; v35 = 11; v36 = 15; *(_QWORD *)&v34 = 0x74530A6863746950LL; *((_QWORD *)&v34 + 1) = 7565413; cocos2d::CCPoint::CCPoint(4.5085941e21, 21.0); cocos2d::CCPoint::operator+(v42, &v45); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 599, (unsigned int)&v34, (unsigned int)&v45, 0, 4, 0, 1065353216); v18 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_menuBtn_001.png"); ((void (__fastcall *)(struct cocos2d::CCSprite *))v18->setScale_0)(v18); v19 = CCMenuItemSpriteExtra::create(v18, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetupSFXPopup::onBrowseSFX); v20 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)( a1->m_buttonMenu, v19); cocos2d::CCPoint::CCPoint(v20, (float)(a1->m_width * 0.5) - 22.0); cocos2d::CCPoint::operator+(v43, &v45); v21 = v19->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v22 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, (const struct cocos2d::CCPoint *)&v37); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v21->setPosition_0)(v19, v22); a1->m_sfxID = (int)a1->getValue(a1, 392); SetupSFXPopup::createSFXWidget(a1); SetupTriggerPopup::createPageButtons(a1, (float)(a1->m_width * 0.5) + 15.0, v23); v24 = a1->getValue(a1, 427); SetupTriggerPopup::goToPage(a1, (int)v24, 0); a1->updateDefaultTriggerValues(a1); a1->m_disableTextDelegate = 0; return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source