// // cocos2d::CCLabelBMFont::updateDisplayedColor from 0x1002fc314 to 0x1002fc3d8 (196 bytes) // // 3 xrefs: // > sub_1002FC3D8 @ 0x1002fc3dc // > @ 0x10076ce58 // > @ 0x1007e9f10 // // 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::updateDisplayedColor(cocos2d::CCLabelBMFont *a1, const cocos2d::ccColor3B *a2) { int v2; // w9 double v3; // d0 cocos2d::CCArray *m_pChildren; // x8 cocos2d::ccArray *data; // x9 __int64 num; // x8 cocos2d::CCObject **arr; // x20 unsigned __int64 v9; // x21 v2 = (int)((double)(a2->g * (unsigned int)a1->m_tRealColor.g) / 255.0); a1->m_tDisplayedColor.r = (int)((double)(a2->r * (unsigned int)a1->m_tRealColor.r) / 255.0); v3 = (double)(a2->b * (unsigned int)a1->m_tRealColor.b); a1->m_tDisplayedColor.g = v2; a1->m_tDisplayedColor.b = (int)(v3 / 255.0); m_pChildren = a1->m_pChildren; if ( m_pChildren ) { data = m_pChildren->data; num = data->num; if ( (_DWORD)num ) { arr = data->arr; v9 = (unsigned __int64)&arr[num - 1]; do { if ( !*arr ) break; ((void (__fastcall *)(cocos2d::CCObject *, cocos2d::ccColor3B *))(*arr)->__vftable[11].setTag)( *arr, &a1->m_tDisplayedColor); ++arr; } while ( (unsigned __int64)arr <= v9 ); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source