// // ShareCommentLayer::updatePercentLabel from 0x1005e0d10 to 0x1005e0dc7 (183 bytes) // // 0 xrefs: // // 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 ShareCommentLayer::updatePercentLabel(ShareCommentLayer *a1) { cocos2d::CCLabelBMFont *m_percentLabel; // rdi void (__cdecl *setOpacity)(cocos2d::CCLabelBMFont *__hidden, GLubyte); // rax cocos2d::CCLabelBMFont *v4; // r14 cocos2d::CCString *v5; // rax const char *CString; // rax char v7; // [rsp+0h] [rbp-10h] m_percentLabel = a1->m_percentLabel; setOpacity = m_percentLabel->setOpacity; if ( a1->m_percentEnabled ) { ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))setOpacity)(m_percentLabel, 255); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))a1->m_percentLabel->setColor)( a1->m_percentLabel, &unk_1008218CC); v4 = a1->m_percentLabel; v5 = (cocos2d::CCString *)sub_1007AB580("%i%%", v7); CString = cocos2d::CCString::getCString(v5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))v4->setString)(v4, CString); } else { ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))setOpacity)(m_percentLabel, 125); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))a1->m_percentLabel->setColor)( a1->m_percentLabel, &unk_1008218CF); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const std::string::value_type *))a1->m_percentLabel->setString)( a1->m_percentLabel, "%"); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source