// // EditorSoundBrowserLayer::layoutCells from 0x781c50 to 0x781de6 (406 bytes) // // 4 xrefs: // > EditorSoundBrowserLayer::loadEditorSoundsFinished @ 0x7820d8 // > EditorSoundBrowserLayer::loadEditorSoundsFailed @ 0x782142 // > EditorSoundBrowserLayer::loadCurrentPage @ 0x782304 // > EditorSoundBrowserLayer::loadCurrentPage @ 0x782388 // // 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:59:29 +0000 // int __fastcall EditorSoundBrowserLayer::layoutCells( EditorSoundBrowserLayer *this, cocos2d::CCArray *a2, cocos2d::CCLabelBMFont *a3) { cocos2d::CCObject *v6; // r0 const char *v7; // r2 int v8; // r5 void (__fastcall *v9)(int, _BYTE *); // r2 void (__fastcall *v10)(int, _BYTE *); // r8 int v12; // r3 cocos2d::CCLayer *v13; // r0 cocos2d::CCLayerColor *v14; // r0 cocos2d::CCDirector *v15; // r0 int v16; // r4 int (__fastcall *v17)(int, _BYTE *); // r5 float v18; // [sp+14h] [bp-8h] BYREF float v19; // [sp+18h] [bp-4h] _BYTE v20[8]; // [sp+1Ch] [bp+0h] BYREF v6 = EditorSoundBrowserLayer::clearCells(this); *((_DWORD *)this + 190) = a2; if ( a2 && (cocos2d::CCObject::retain(a2), (v6 = (cocos2d::CCObject *)cocos2d::CCArray::count(a2)) != nullptr) ) { if ( *((_DWORD *)this + 182) == 1 ) v12 = 35; else v12 = 34; v13 = CustomListView::create(a2, (int)this + 720, 1127481344, 1135214592, 0, v12, *((_DWORD *)this + 203)); v14 = GJCommentListLayer::create((int)v13, (int)&unk_B6B226, -14201459, 340.0, 180.0, 0); *((_DWORD *)this + 184) = v14; v15 = (cocos2d::CCDirector *)(*(int (__fastcall **)(_DWORD, cocos2d::CCLayerColor *, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), v14, 5); cocos2d::CCDirector::sharedDirector(v15); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v18); v16 = *((_DWORD *)this + 184); v17 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v16 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v20, (float)(v18 - 340.0) * 0.5, (float)((float)(v19 - 180.0) * 0.5) - 30.0); return v17(v16, v20); } else { cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v18); v8 = cocos2d::CCLabelBMFont::create(a3, "bigFont.fnt", v7); (*(void (__fastcall **)(int, int))(*(_DWORD *)v8 + 80))(v8, 1058642330); v9 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v8 + 536); v20[0] = -56; v20[1] = -56; v20[2] = -56; v9(v8, v20); v10 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v8 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, v18 * 0.5, (float)(v19 * 0.5) - 10.0); v10(v8, v20); (*(void (__fastcall **)(int, int))(*(_DWORD *)v8 + 36))(v8, 9999); return (*(int (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v8, 5); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source