// // MenuLayer::updateUserProfileButton from 0x1403351f0 to 0x1403352f0 (256 bytes) // // 4 xrefs: // > AccountHelpLayer::FLAlert_Clicked @ 0x1400801b3 // > GJAccountManager::linkToAccount @ 0x140203a72 // > MenuLayer::init @ 0x140334e5d // > @ 0x1406d5114 // // 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 // // Hidden C++ exception states: #wind=1 void MenuLayer::updateUserProfileButton(MenuLayer *a1) { GJAccountManager *v2; // rax int v3; // ebx cocos2d::CCSprite *m_viewProfileSprite; // rcx GJAccountManager *v5; // rax const char *v6; // rdx _QWORD v7[4]; // [rsp+28h] [rbp-30h] BYREF v2 = GJAccountManager::sharedState(); v3 = v2->m_accountID - v2->m_unkInt1; a1->m_profileButton->setVisible(a1->m_profileButton, v3 > 0); a1->m_profileLabel->setVisible(a1->m_profileLabel, v3 > 0); m_viewProfileSprite = a1->m_viewProfileSprite; if ( m_viewProfileSprite ) m_viewProfileSprite->setVisible(m_viewProfileSprite, v3 > 0); if ( v3 > 0 ) { v5 = GJAccountManager::sharedState(); sub_14003BDB0((__int64)v7, (__int64)&v5->m_username); v6 = (const char *)v7; if ( v7[3] > 0xFu ) v6 = (const char *)v7[0]; a1->m_profileLabel->setString(&a1->m_profileLabel->cocos2d::CCLabelProtocol, v6); sub_14003A830((__int64)v7); cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_profileLabel, 70.0, 0.69999999, 0.0); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source