// // SFXFolderPickerPopup::init from 0x7302e8 to 0x730ce8 (2560 bytes) // // 1 xrefs: // > SFXFolderPickerPopup::create @ 0x730e8e // // 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:58:19 +0000 // MusicDownloadManager *__fastcall SFXFolderPickerPopup::init( cocos2d::CCObject *a1, int a2, int a3, MusicDownloadManager *a4, int a5, int a6) { MusicDownloadManager *CustomSFXFolderForID; // r0 MusicDownloadManager *v11; // r11 MusicDownloadManager *v12; // r0 int v13; // r3 cocos2d::CCDirector *v14; // r0 cocos2d::CCLayer *v15; // r0 int v16; // r0 int v17; // r3 int v18; // r8 void (__fastcall *v19)(int, _DWORD *); // r10 const char *v20; // r2 int v21; // r3 char *v22; // r0 int v23; // r8 void (__fastcall *v24)(int, _DWORD *); // r10 cocos2d::CCMenu *v25; // r0 int v26; // r0 const char *v27; // r1 int v28; // r8 int v29; // r8 void (__fastcall *v30)(int, _DWORD *); // r10 const char *v31; // r2 int v32; // r8 float v33; // s16 float v34; // s16 int v35; // r9 int v36; // r9 int *v37; // r0 int v38; // r0 int v39; // r9 int v40; // r9 int v41; // r1 int v42; // r2 float v43; // s15 float v44; // s15 int v45; // r0 int v46; // r7 void (__fastcall *v47)(int, _DWORD *); // r8 float v48; // s17 float v49; // s18 int v50; // r8 void (__fastcall *v51)(int, _DWORD *); // r3 void (__fastcall *v52)(int, _DWORD *); // r10 int v53; // r1 int v54; // r2 int v55; // r3 int *v56; // r0 float v57; // r1 float v58; // s15 int *v59; // r8 void (__fastcall *v60)(int *, _DWORD *); // r9 ScrollableContentLayer *v61; // r8 int v62; // r2 int v63; // r3 ButtonSprite *v64; // r0 int v65; // r0 int v66; // r8 void (__fastcall *v67)(int, _DWORD *); // r9 const char *v68; // r1 int v69; // r8 int v70; // r6 int (__fastcall *v71)(int, _DWORD *); // r7 GameManager *v72; // r0 GameManager *v73; // r0 const char *v74; // r2 int v75; // r6 void (__fastcall *v76)(int, _DWORD *); // r7 void (__fastcall *v77)(int, _DWORD *); // r7 ButtonSprite *v78; // r0 _DWORD *v79; // r7 void (__fastcall *v80)(_DWORD *, _DWORD *); // r8 float v81; // s17 char *v82; // r0 ButtonSprite *v83; // r0 int v84; // r0 int v85; // r7 void (__fastcall *v86)(int, _DWORD *); // r8 int v87; // r1 MusicDownloadManager *v89; // r0 char *v90; // [sp+8h] [bp-7Ch] float v91; // [sp+10h] [bp-74h] float v92; // [sp+10h] [bp-74h] void (__fastcall *v93)(int, _DWORD *); // [sp+18h] [bp-6Ch] void (__fastcall *v94)(int, _DWORD *); // [sp+18h] [bp-6Ch] void (__fastcall *v95)(int, _DWORD *); // [sp+18h] [bp-6Ch] void (__fastcall *v96)(int, _DWORD *); // [sp+18h] [bp-6Ch] void (__fastcall *v97)(int *, int); // [sp+18h] [bp-6Ch] int *v98; // [sp+1Ch] [bp-68h] int v99; // [sp+24h] [bp-60h] float v100[2]; // [sp+28h] [bp-5Ch] BYREF float v101; // [sp+30h] [bp-54h] BYREF float v102; // [sp+34h] [bp-50h] float v103[6]; // [sp+38h] [bp-4Ch] BYREF _DWORD v104[4]; // [sp+50h] [bp-34h] BYREF int v105; // [sp+60h] [bp-24h] BYREF int v106; // [sp+64h] [bp-20h] int v107; // [sp+68h] [bp-1Ch] _DWORD v108[4]; // [sp+6Ch] [bp-18h] BYREF v108[0] = -1778384896; CustomSFXFolderForID = (MusicDownloadManager *)cocos2d::CCLayerColor::initWithColor(a1, v108); v11 = CustomSFXFolderForID; if ( !CustomSFXFolderForID ) return v11; *((_DWORD *)a1 + 131) = a2; *((_DWORD *)a1 + 139) = a5; if ( a2 == 1 ) { CustomSFXFolderForID = (cocos2d::CCObject *)((char *)a1 + 528); goto LABEL_6; } if ( a2 == 2 ) { CustomSFXFolderForID = (cocos2d::CCObject *)((char *)a1 + 540); LABEL_6: if ( CustomSFXFolderForID != a4 ) std::__tree::__assign_multi *,int>>( (int)CustomSFXFolderForID, *(_DWORD **)a4, (_DWORD *)a4 + 1); } if ( *((_DWORD *)a1 + 131) != 2 ) { if ( a6 > 0 && (v12 = (MusicDownloadManager *)MusicDownloadManager::sharedState(CustomSFXFolderForID), (CustomSFXFolderForID = (MusicDownloadManager *)MusicDownloadManager::getCustomSFXFolderForID(v12, a6)) != nullptr) ) { *((_DWORD *)a1 + 138) = a6; } else { v89 = (MusicDownloadManager *)MusicDownloadManager::sharedState(CustomSFXFolderForID); if ( MusicDownloadManager::getCustomSFXFolderForID(v89, SFXFolderPickerPopup::s_lastFolderID) ) *((_DWORD *)a1 + 138) = SFXFolderPickerPopup::s_lastFolderID; } } (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)a1 + 584))(a1, 150); FLAlertLayer::incrementForcePrio(a1); v13 = *(_DWORD *)a1; *((_BYTE *)a1 + 468) = 1; (*(void (__fastcall **)(cocos2d::CCObject *, int))(v13 + 500))(a1, 1); v14 = (cocos2d::CCDirector *)(*(int (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)a1 + 536))(a1, 1); cocos2d::CCDirector::sharedDirector(v14); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v100); v15 = (cocos2d::CCLayer *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v101, v100[0] * 0.5, v100[1] * 0.5); v16 = cocos2d::CCLayer::create(v15); v17 = *(_DWORD *)a1; *((_DWORD *)a1 + 115) = v16; (*(void (__fastcall **)(cocos2d::CCObject *, int))(v17 + 228))(a1, v16); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v108, 0.0, 0.0, 80.0, 80.0); v18 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v108); v19 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v18 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v108, 320.0, 250.0); v19(v18, v108); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)a1 + 115) + 232))(*((_DWORD *)a1 + 115), v18, -2); (*(void (__fastcall **)(int, float *))(*(_DWORD *)v18 + 92))(v18, &v101); v21 = *((_DWORD *)a1 + 131); if ( v21 ) { if ( v21 == 1 ) v22 = "Move to Folder"; else v22 = "Share with Level"; } else { v22 = "Add to Folder"; } v23 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v22, "goldFont.fnt", v20); (*(void (__fastcall **)(int, int))(*(_DWORD *)v23 + 80))(v23, 1060320051); v24 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v23 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v108, v101, (float)(v102 + 125.0) - 18.0); v24(v23, v108); v25 = (cocos2d::CCMenu *)(*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)a1 + 115) + 228))( *((_DWORD *)a1 + 115), v23); v26 = cocos2d::CCMenu::create(v25); *((_DWORD *)a1 + 111) = v26; (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)a1 + 115) + 232))(*((_DWORD *)a1 + 115), v26, 10); (*(void (__fastcall **)(_DWORD, void *))(**((_DWORD **)a1 + 111) + 92))(*((_DWORD *)a1 + 111), &unk_D2DD7C); *((_DWORD *)a1 + 125) = -1; v28 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v27); (*(void (__fastcall **)(int, int))(*(_DWORD *)v28 + 80))(v28, 1061997773); v103[3] = 0.0; LODWORD(v103[2]) = SFXFolderPickerPopup::onClose; v29 = CCMenuItemSpriteExtra::create(v28, 0, (int)a1, (int)SFXFolderPickerPopup::onClose, 0); CCMenuItemSpriteExtra::setSizeMult(v29, 1.6); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)a1 + 111) + 228))(*((_DWORD *)a1 + 111), v29); v30 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v29 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v108, (float)(v101 - 160.0) + 10.0, (float)(v102 + 125.0) - 10.0); v30(v29, v108); v32 = *((_DWORD *)a1 + 131); v33 = v102 + 125.0; if ( v32 ) { if ( v32 == 2 ) { v45 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)" ", "chatFont.fnt", v31); *((_DWORD *)a1 + 144) = v45; (*(void (__fastcall **)(int, int))(*(_DWORD *)v45 + 80))(v45, 1056964608); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)a1 + 144) + 512))(*((_DWORD *)a1 + 144), 200); v46 = *((_DWORD *)a1 + 144); v47 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v46 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v108, v101, (float)(v102 + 125.0) - 34.0); v47(v46, v108); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)a1 + 115) + 228))( *((_DWORD *)a1 + 115), *((_DWORD *)a1 + 144)); v44 = 46.0; v33 = v102 + 125.0; } else { v44 = 36.0; } v43 = v33 - v44; } else { v34 = v33 - 48.0; v35 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Name:", "goldFont.fnt", v31); (*(void (__fastcall **)(int, int))(*(_DWORD *)v35 + 80))(v35, 1056964608); v93 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v35 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v108, 1.0, 0.5); v93(v35, v108); v94 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v35 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v108, v101 - 96.0, v34); v94(v35, v108); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)a1 + 115) + 228))(*((_DWORD *)a1 + 115), v35); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v108, 0.0, 0.0, 40.0, 40.0); v36 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v108); (*(void (__fastcall **)(int, int))(*(_DWORD *)v36 + 456))(v36, 100); v95 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v36 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v108, 200.0, 28.0); v95(v36, v108); v96 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v36 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v108, v101 + 14.0, v34); v96(v36, v108); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)a1 + 115) + 232))(*((_DWORD *)a1 + 115), v36, -1); v37 = CCTextInputNode::create( (CCTextInputNode *)0x433E0000, 40.0, "Name", "Thonburi", (const char *)&dword_18, "bigFont.fnt", v90); *((_DWORD *)a1 + 140) = v37; v98 = v37; v97 = *(void (__fastcall **)(int *, int))(*v37 + 92); v38 = (*(int (__fastcall **)(int))(*(_DWORD *)v36 + 96))(v36); v97(v98, v38); CCTextInputNode::setMaxLabelScale(*((_DWORD *)a1 + 140), 0.55); CCTextInputNode::setMaxLabelWidth(*((_DWORD *)a1 + 140), 180.0); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(*((_DWORD *)a1 + 140) + 416) + 172))( *(_DWORD *)(*((_DWORD *)a1 + 140) + 416), 0); *(_DWORD *)(*((_DWORD *)a1 + 140) + 424) = 30; v39 = *((_DWORD *)a1 + 140); v105 = 0; v106 = 0; v107 = 0; std::string::__init( &v105, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,-!?:;)(/\\\"'`*=+-_%[]<>|@&^#{}%$~", 0x61u); CCTextInputNode::setAllowedChars(v39, (unsigned __int8 *)&v105); std::string::~string((int)&v105); LOWORD(v99) = -21896; BYTE2(v99) = -16; CCTextInputNode::setLabelPlaceholderColor(*((_DWORD *)a1 + 140), v99); CCTextInputNode::setLabelPlaceholderScale(*((_DWORD *)a1 + 140), 0.4); *(_DWORD *)(*((_DWORD *)a1 + 140) + 420) = (char *)a1 + 440; *(_BYTE *)(*((_DWORD *)a1 + 140) + 324) = 0; v105 = 0; v106 = 0; v107 = 0; v40 = *((_DWORD *)a1 + 140); if ( (*(_BYTE *)a3 & 1) != 0 ) { std::string::__init(&v105, *(const void **)(a3 + 8), *(_DWORD *)(a3 + 4)); } else { v41 = *(_DWORD *)(a3 + 4); v42 = *(_DWORD *)(a3 + 8); v105 = *(_DWORD *)a3; v106 = v41; v107 = v42; } CCTextInputNode::setString(v40, (int)&v105); std::string::~string((int)&v105); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)a1 + 115) + 232))( *((_DWORD *)a1 + 115), *((_DWORD *)a1 + 140), 20); v43 = v34 - 22.0; } v48 = (float)(v102 - 125.0) + 26.0; v49 = v43 - (float)(v48 + 22.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, v101, (float)(v43 + (float)(v48 + 22.0)) * 0.5); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v108, 0.0, 0.0, 40.0, 40.0); v50 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v108); (*(void (__fastcall **)(int, int))(*(_DWORD *)v50 + 456))(v50, 80); v51 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v50 + 480); LOWORD(v108[0]) = 0; BYTE2(v108[0]) = 0; v51(v50, v108); v52 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v50 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v108, 290.0, v49); v52(v50, v108); (*(void (__fastcall **)(int, float *))(*(_DWORD *)v50 + 92))(v50, v103); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)a1 + 115) + 232))(*((_DWORD *)a1 + 115), v50, -1); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v108, 290.0, v49); v56 = ScrollableContentLayer::create((const cocos2d::CCSize *)v108, v53, v54, v55); v57 = v103[0] - 145.0; v58 = v103[1] - (float)(v49 * 0.5); *((_DWORD *)a1 + 141) = v56; v59 = v56; v60 = *(void (__fastcall **)(int *, _DWORD *))(*v56 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v108, v57, v58); v60(v59, v108); v61 = *((ScrollableContentLayer **)a1 + 141); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v108, 2.0, 0.0); ScrollableContentLayer::setThumbOffset(v61, (int)v108); ScrollableContentLayer::setForwardedTouchesOnly(*((_DWORD *)a1 + 141), 1); ScrollableContentLayer::setSectionHeight(*((ScrollableContentLayer **)a1 + 141), v49, v62, v63); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)a1 + 115) + 232))( *((_DWORD *)a1 + 115), *((_DWORD *)a1 + 141), 1); if ( *((_DWORD *)a1 + 131) == 2 ) { v64 = ButtonSprite::create( (ButtonSprite *)"Save", (const char *)&word_32, 0, 0.4, 1, "bigFont.fnt", "GJ_button_01.png", COERCE_CONST_CHAR_(22.0), v91); v103[5] = 0.0; LODWORD(v103[4]) = SFXFolderPickerPopup::onSave; v65 = CCMenuItemSpriteExtra::create((int)v64, 0, (int)a1, (int)SFXFolderPickerPopup::onSave, 0); *((_DWORD *)a1 + 143) = v65; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)a1 + 111) + 228))(*((_DWORD *)a1 + 111), v65); v66 = *((_DWORD *)a1 + 143); v67 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v66 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v108, v101, v48); v67(v66, v108); v69 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"threadBtn_selectAll_001.png", v68); (*(void (__fastcall **)(int, int))(*(_DWORD *)v69 + 80))(v69, 1065353216); v104[1] = 0; v104[0] = SFXFolderPickerPopup::onSelectAll; v70 = CCMenuItemSpriteExtra::create(v69, 0, (int)a1, (int)SFXFolderPickerPopup::onSelectAll, 0); CCMenuItemSpriteExtra::setSizeMult(v70, 1.2); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)a1 + 111) + 228))(*((_DWORD *)a1 + 111), v70); v71 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v70 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v108, (float)(v101 - 160.0) + 26.0, v48); v72 = (GameManager *)v71(v70, v108); v73 = (GameManager *)GameManager::sharedState(v72); if ( GameManager::getGameVariable(v73, "0233") ) { v75 = cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)"Names hidden (Editor Options)", "chatFont.fnt", v74); (*(void (__fastcall **)(int, int))(*(_DWORD *)v75 + 80))(v75, 1055286886); (*(void (__fastcall **)(int, int))(*(_DWORD *)v75 + 512))(v75, 180); v76 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v75 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v108, 1.0, 0.5); v76(v75, v108); v77 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v75 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v108, (float)(v101 + 160.0) - 14.0, v48); v77(v75, v108); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)a1 + 115) + 228))(*((_DWORD *)a1 + 115), v75); } } else { v78 = ButtonSprite::create( (ButtonSprite *)"New Folder", (const char *)&dword_44, 0, 0.4, 1, "bigFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(22.0), v91); v104[3] = 0; v104[2] = SFXFolderPickerPopup::onNewFolder; v79 = (_DWORD *)CCMenuItemSpriteExtra::create((int)v78, 0, (int)a1, (int)SFXFolderPickerPopup::onNewFolder, 0); (*(void (__fastcall **)(_DWORD, _DWORD *))(**((_DWORD **)a1 + 111) + 228))(*((_DWORD *)a1 + 111), v79); v80 = *(void (__fastcall **)(_DWORD *, _DWORD *))(*v79 + 92); v81 = v48 - 2.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v108, v101 - 60.0, v81); v80(v79, v108); (*(void (__fastcall **)(_DWORD *, int))(*v79 + 80))(v79, 1067030938); v79[79] = 1067030938; if ( *((_DWORD *)a1 + 131) ) v82 = "Move"; else v82 = "Add"; v83 = ButtonSprite::create( (ButtonSprite *)v82, (const char *)&word_32, 0, 0.4, 1, "bigFont.fnt", "GJ_button_04.png", (const char *)0x41B00000, v92); v108[1] = 0; v108[0] = SFXFolderPickerPopup::onConfirm; v84 = CCMenuItemSpriteExtra::create((int)v83, 0, (int)a1, (int)SFXFolderPickerPopup::onConfirm, 0); *((_DWORD *)a1 + 142) = v84; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)a1 + 111) + 228))(*((_DWORD *)a1 + 111), v84); v85 = *((_DWORD *)a1 + 142); v86 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v85 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v104, v101 + 60.0, v81); v86(v85, v104); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)a1 + 142) + 80))(*((_DWORD *)a1 + 142), 1067030938); *(_DWORD *)(*((_DWORD *)a1 + 142) + 316) = 1067030938; } SFXFolderPickerPopup::rebuildList((char **)a1); SFXFolderPickerPopup::updateActionBtn(a1); SFXFolderPickerPopup::updateShareHint((char *)a1, v87); return v11; }
GD Web Decomp Icon

GD Web Decomp

Raw Source