// // cocos2d::CCLabelBMFont::setColor from 0x1002fc034 to 0x1002fc100 (204 bytes) // // 3 xrefs: // > sub_1002FC100 @ 0x1002fc104 // > @ 0x10076ce50 // > @ 0x1007e9f08 // // 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 // void __fastcall cocos2d::CCLabelBMFont::setColor(cocos2d::CCLabelBMFont *a1, const cocos2d::ccColor3B *a2) { __int64 v2; // x29 __int64 v3; // x30 __int16 v4; // w9 __int16 v5; // w8 cocos2d::CCNode *m_pParent; // x0 void *v8; // x0 void *v9; // x20 __int64 v10; // x0 char v11; // w8 __int16 v12; // [xsp+Ch] [xbp-24h] BYREF char v13; // [xsp+Eh] [xbp-22h] __int64 v14; // [xsp+20h] [xbp-10h] __int64 v15; // [xsp+28h] [xbp-8h] v4 = *(_WORD *)&a2->r; a1->m_tRealColor.b = a2->b; *(_WORD *)&a1->m_tRealColor.r = v4; v5 = *(_WORD *)&a2->r; a1->m_tDisplayedColor.b = a2->b; *(_WORD *)&a1->m_tDisplayedColor.r = v5; if ( a1->m_bCascadeColorEnabled ) { v14 = v2; v15 = v3; v13 = -1; v12 = -1; m_pParent = a1->m_pParent; if ( m_pParent ) { v8 = __dynamic_cast( m_pParent, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode, (const struct __class_type_info *)&off_100770F10, -2); if ( v8 ) { v9 = v8; if ( (*(unsigned int (__fastcall **)(void *))(*(_QWORD *)v8 + 64LL))(v8) ) { v10 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v9 + 16LL))(v9); v11 = *(_BYTE *)(v10 + 2); v12 = *(_WORD *)v10; v13 = v11; } } } ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int16 *))a1->updateDisplayedColor)(a1, &v12); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source