// // AccountLoginLayer::updateLabel from 0x85183c to 0x851984 (328 bytes) // // 6 xrefs: // > AccountLoginLayer::textInputClosed @ 0x851afc // > AccountLoginLayer::textInputClosed @ 0x851b60 // > AccountLoginLayer::onSubmit @ 0x851f40 // > AccountLoginLayer::onSubmit @ 0x851f50 // > AccountLoginLayer::loginAccountFailed @ 0x8521e4 // > @ 0xb1090 // // 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 AccountLoginLayer::updateLabel(AccountLoginLayer *a1, AccountError a2) { cocos2d::CCLabelBMFont *m_usernameLabel; // x2 const char *v4; // x1 cocos2d::CCLabelBMFont *m_passwordLabel; // x2 switch ( a2 ) { case AlreadyLinkedToDifferentSteamAccount: m_usernameLabel = a1->m_usernameLabel; v4 = "Already linked to different Steam account"; goto LABEL_3; case AccountDisabled: a1->m_usernameLabel->setString(a1->m_usernameLabel, "Account has been disabled"); a1->m_usernameLabel->setColor(a1->m_usernameLabel, (const cocos2d::ccColor3B *)&unk_EEC890); a1->m_passwordLabel->setString(a1->m_passwordLabel, "Contact RobTop Support for more info"); a1->m_passwordLabel->setColor(a1->m_passwordLabel, (const cocos2d::ccColor3B *)&unk_EEC890); return; case AlreadyLinkedToDifferentAccount: m_usernameLabel = a1->m_usernameLabel; v4 = "Already linked to different account"; goto LABEL_3; case TooShortLessThan3: m_usernameLabel = a1->m_usernameLabel; v4 = "Too short. Minimum 3 characters"; goto LABEL_3; case TooShortLessThan6: a1->m_passwordLabel->setString(a1->m_passwordLabel, "Too short. Minimum 6 characters"); m_passwordLabel = a1->m_passwordLabel; goto LABEL_4; default: m_usernameLabel = a1->m_usernameLabel; v4 = "Login failed"; LABEL_3: m_usernameLabel->setString(m_usernameLabel, (const unsigned __int8 *)v4); m_passwordLabel = a1->m_usernameLabel; LABEL_4: m_passwordLabel->setColor(m_passwordLabel, (const cocos2d::ccColor3B *)&unk_EEC890); return; } }