// // GJSongBrowser::customSetup from 0x3f7140 to 0x3f73ce (654 bytes) // // 0 xrefs: // // 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:47:18 +0000 // int __fastcall GJSongBrowser::customSetup(GJSongBrowser *this) { cocos2d::CCMenu *WinSize; // r0 const cocos2d::CCPoint *v3; // r0 float v4; // s16 const cocos2d::CCPoint *v5; // r6 const char *v6; // r1 int v7; // r0 int v8; // r0 cocos2d::CCDirector *v9; // r0 int v10; // r11 cocos2d::CCDirector *v11; // r0 float v12; // r0 const char *v13; // r1 cocos2d::CCSprite *v14; // r5 int v15; // r0 cocos2d::CCDirector *v16; // r0 int v17; // r10 void (__fastcall *v18)(int, _DWORD *); // r11 cocos2d::CCDirector *v19; // r0 float v20; // r0 const char *v21; // r1 int v22; // r0 int v23; // r10 int v24; // r9 cocos2d::CCDirector *v25; // r0 float v26; // s17 void (__fastcall *v27)(int, _BYTE *); // r10 cocos2d::CCDirector *v28; // r0 float v29; // r0 float v30; // s18 cocos2d::CCDirector *v31; // r0 float v32; // r0 const char *v33; // r2 int v34; // r0 cocos2d::CCDirector *v35; // r0 int v36; // r6 void (__fastcall *v37)(int, _BYTE *); // r7 cocos2d::CCDirector *v38; // r0 float v39; // s17 cocos2d::CCDirector *v40; // r0 float v41; // r0 int v42; // r6 void (__fastcall *v43)(int, _BYTE *); // r7 MusicDownloadManager *v44; // r0 MusicDownloadManager *v45; // r0 cocos2d::CCObject *DownloadedSongs; // r0 int v47; // r0 int (__fastcall *v48)(int, _BYTE *); // r2 void (__fastcall *v50)(int, _DWORD *); // [sp+Ch] [bp-40h] _BYTE v51[4]; // [sp+14h] [bp-38h] BYREF float v52; // [sp+18h] [bp-34h] _BYTE v53[8]; // [sp+1Ch] [bp-30h] BYREF _BYTE v54[8]; // [sp+24h] [bp-28h] BYREF _DWORD (*v55)(GJSongBrowser *__hidden, cocos2d::CCObject *); // [sp+2Ch] [bp-20h] int v56; // [sp+30h] [bp-1Ch] _DWORD v57[2]; // [sp+34h] [bp-18h] BYREF _DWORD v58[2]; // [sp+3Ch] [bp-10h] BYREF cocos2d::CCDirector::sharedDirector(this); WinSize = (cocos2d::CCMenu *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v51); v3 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(WinSize); v4 = v52 * 0.5; v5 = v3; v7 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v6); v55 = GJSongBrowser::onPrevPage; v56 = 0; v8 = CCMenuItemSpriteExtra::create(v7, 0, (int)this, (int)GJSongBrowser::onPrevPage, 0); *((_DWORD *)this + 126) = v8; v9 = (cocos2d::CCDirector *)(*(int (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v5 + 228))(v5, v8); v10 = *((_DWORD *)this + 126); v50 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v10 + 92); v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v9); v12 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v11)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v57, v12 + 24.0, v4); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v58, v5); v50(v10, v58); v14 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_01_001.png", v13); cocos2d::CCSprite::setFlipX(v14, 1); v57[0] = GJSongBrowser::onNextPage; v57[1] = 0; v15 = CCMenuItemSpriteExtra::create((int)v14, 0, (int)this, (int)GJSongBrowser::onNextPage, 0); *((_DWORD *)this + 125) = v15; v16 = (cocos2d::CCDirector *)(*(int (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v5 + 228))(v5, v15); v17 = *((_DWORD *)this + 125); v18 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v17 + 92); v19 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v16); v20 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v19)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v54, v20 - 24.0, v4); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v58, v5); v18(v17, v58); v22 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_deleteBtn_001.png", v21); v58[0] = GJSongBrowser::onDeleteAll; v58[1] = 0; v23 = v22; v24 = CCMenuItemSpriteExtra::create(v22, 0, (int)this, (int)GJSongBrowser::onDeleteAll, 0); v25 = (cocos2d::CCDirector *)(*(int (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v5 + 228))(v5, v24); v26 = (float)(*(float *)(v23 + 344) * 0.5) + 4.0; v27 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v24 + 92); v28 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v25); v29 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v28)); v30 = v29 - v26; v31 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v29)); v32 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v31)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v53, v30, v32 + v26); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v54, v5); v27(v24, v54); (*(void (__fastcall **)(_DWORD, const cocos2d::CCPoint *, int))(**((_DWORD **)this + 116) + 232))( *((_DWORD *)this + 116), v5, 10); v34 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)" ", "goldFont.fnt", v33); *((_DWORD *)this + 127) = v34; v35 = (cocos2d::CCDirector *)(*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 116) + 228))( *((_DWORD *)this + 116), v34); v36 = *((_DWORD *)this + 127); v37 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v36 + 92); v38 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v35); v39 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v38)); v40 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v39)); v41 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v40)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v54, v39 - 7.0, v41 - 4.0); v37(v36, v54); v42 = *((_DWORD *)this + 127); v43 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v42 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v54, 1.0, 1.0); v43(v42, v54); v44 = (MusicDownloadManager *)(*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 127) + 80))( *((_DWORD *)this + 127), 1058642330); v45 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v44); DownloadedSongs = (cocos2d::CCObject *)MusicDownloadManager::getDownloadedSongs(v45); *((_DWORD *)this + 130) = DownloadedSongs; cocos2d::CCObject::retain(DownloadedSongs); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 584))(*((_DWORD *)this + 115), 255); v47 = *((_DWORD *)this + 115); v48 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v47 + 608); memset(v54, 50, 3); return v48(v47, v54); }
GD Web Decomp Icon

GD Web Decomp

Raw Source