// // ShareCommentLayer::onPercent from 0x1005e0c40 to 0x1005e0d03 (195 bytes) // // 1 xrefs: // > ShareCommentLayer::init @ 0x1005e0023 // // 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::onPercent(ShareCommentLayer *a1, cocos2d::CCObject *a2) { bool m_percentEnabled; // cl cocos2d::CCLabelBMFont *m_percentLabel; // rdi void (__cdecl *setOpacity)(cocos2d::CCLabelBMFont *__hidden, GLubyte); // rax cocos2d::CCLabelBMFont *v6; // r14 cocos2d::CCString *v7; // rax const char *CString; // rax char v9; // [rsp+0h] [rbp-10h] m_percentEnabled = a1->m_percentEnabled; a1->m_percentEnabled = !m_percentEnabled; m_percentLabel = a1->m_percentLabel; setOpacity = m_percentLabel->setOpacity; if ( m_percentEnabled ) { ((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, "%"); } else { ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))setOpacity)(m_percentLabel, 255); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))a1->m_percentLabel->setColor)( a1->m_percentLabel, &unk_1008218CC); v6 = a1->m_percentLabel; v7 = (cocos2d::CCString *)sub_1007AB580("%i%%", v9); CString = cocos2d::CCString::getCString(v7); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))v6->setString)(v6, CString); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source