// // FontPreviewCell::loadFromIndex from 0x7a183c to 0x7a1a90 (596 bytes) // // 1 xrefs: // > CustomListView::loadCell @ 0x4342a4 // // 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:54 +0000 // _BYTE *__fastcall FontPreviewCell::loadFromIndex(FontPreviewCell *this, const char *a2, const char *a3) { float v6; // s19 float v7; // s17 cocos2d::CCString *v8; // r0 cocos2d::CCSpriteFrameCache *CString; // r4 cocos2d::CCSpriteFrameCache *v10; // r0 cocos2d::CCSprite *v11; // r0 cocos2d::CCSpriteFrame *v12; // r1 int v13; // r4 void (__fastcall *v14)(int, _DWORD *); // r10 void (__fastcall *v15)(int, _DWORD *); // r10 void (__fastcall *v16)(int, _DWORD); // r10 int v17; // r0 void (__fastcall *v18)(int, _DWORD *); // r3 cocos2d::CCString *v19; // r0 cocos2d::CCLabelBMFont *v20; // r0 const char *v21; // r2 void (__fastcall *v22)(int, _DWORD *); // r10 void (__fastcall *v23)(int, _DWORD *); // r10 const char *v24; // r1 _BOOL4 v25; // r9 char *v26; // r0 int v27; // r4 cocos2d::CCMenu *v28; // r4 const cocos2d::CCPoint *v29; // r6 cocos2d::CCDirector *v30; // r0 int v31; // r0 cocos2d::CCTouchDispatcher *v32; // r0 cocos2d::CCDirector *isUsingForcePrio; // r0 void (__fastcall *v34)(const cocos2d::CCPoint *, int); // r9 int v35; // r0 int v36; // r0 void (__fastcall *v37)(cocos2d::CCMenu *, _BYTE *); // r11 _BYTE v39[8]; // [sp+Ch] [bp-20h] BYREF _BYTE v40[8]; // [sp+14h] [bp-18h] BYREF _DWORD v41[2]; // [sp+1Ch] [bp-10h] BYREF (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 292))(*((_DWORD *)this + 103), 1); *((_DWORD *)this + 106) = a2; v6 = *((float *)this + 100); v7 = *((float *)this + 101); v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"font%02dPreview.png", a2); CString = (cocos2d::CCSpriteFrameCache *)cocos2d::CCString::getCString(v8); v10 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(CString); v11 = (cocos2d::CCSprite *)cocos2d::CCSpriteFrameCache::spriteFrameByName(v10, (const char *)CString); if ( v11 ) { v13 = cocos2d::CCSprite::createWithSpriteFrame(v11, v12); v14 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v13 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v41, 0.0, 0.5); v14(v13, v41); v15 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v13 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v41, 8.0, v7 * 0.5); v15(v13, v41); if ( *(float *)((*(int (__fastcall **)(int))(*(_DWORD *)v13 + 164))(v13) + 4) > (float)(v7 - 4.0) ) { v16 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v13 + 80); v17 = (*(int (__fastcall **)(int))(*(_DWORD *)v13 + 164))(v13); v16(v13, (float)(v7 - 4.0) / *(float *)(v17 + 4)); } if ( a2 == a3 ) { v18 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v13 + 480); LOWORD(v41[0]) = -256; BYTE2(v41[0]) = -106; v18(v13, v41); } } else { v19 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Font %i", a2 + 1); v20 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v19); v13 = cocos2d::CCLabelBMFont::create(v20, "bigFont.fnt", v21); v22 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v13 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v41, 0.0, 0.5); v22(v13, v41); v23 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v13 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v41, 8.0, v7 * 0.5); v23(v13, v41); (*(void (__fastcall **)(int, float))(*(_DWORD *)v13 + 80))(v13, 0.5); } (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v13); v25 = a2 == a3; if ( v25 ) v26 = "GJ_selectSongOnBtn_001.png"; else v26 = "GJ_selectSongBtn_001.png"; v27 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v26, v24); (*(void (__fastcall **)(int, int))(*(_DWORD *)v27 + 80))(v27, 1059481190); v41[0] = FontPreviewCell::onSelectFont; v41[1] = 0; v28 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v27, 0, (int)this, (int)FontPreviewCell::onSelectFont, 0); CCMenuItemSpriteExtra::setSizeMult((int)v28, 1.1); if ( v25 ) (*(void (__fastcall **)(cocos2d::CCMenu *, _DWORD))(*(_DWORD *)v28 + 528))(v28, 0); v29 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(v28, nullptr); v30 = (cocos2d::CCDirector *)(*(int (__fastcall **)(_DWORD, const cocos2d::CCPoint *, int))(**((_DWORD **)this + 103) + 232))( *((_DWORD *)this + 103), v29, 3); v31 = cocos2d::CCDirector::sharedDirector(v30); v32 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v31 + 80))(v31); isUsingForcePrio = (cocos2d::CCDirector *)cocos2d::CCTouchDispatcher::isUsingForcePrio(v32); if ( isUsingForcePrio ) { v34 = *(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v29 + 512); v35 = cocos2d::CCDirector::sharedDirector(isUsingForcePrio); v36 = (*(int (__fastcall **)(int))(*(_DWORD *)v35 + 80))(v35); v34(v29, *(_DWORD *)(v36 + 100) - 1); } v37 = *(void (__fastcall **)(cocos2d::CCMenu *, _BYTE *))(*(_DWORD *)v28 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v39, v6 - 18.0, v7 * 0.5); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v40, v29); v37(v28, v40); return FontPreviewCell::updateBGColor(this, (char)a2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source