//
// CharacterColorPage::checkColor from 0xa24e54 to 0xa24ebc (104 bytes)
//
// 2 xrefs:
// > CharacterColorPage::onPlayerColor @ 0xa255e4
// > ??> @ 0x561c0
//
// 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
//
bool CharacterColorPage::checkColor(CharacterColorPage *a1, int a2, UnlockType a3)
{
GameManager *v6; // x0
bool isColorUnlocked; // w19
CharacterColorDelegate *m_delegate; // x0
v6 = GameManager::sharedState();
isColorUnlocked = GameManager::isColorUnlocked(v6, a2, a3);
if ( !isColorUnlocked )
{
m_delegate = a1->m_delegate;
if ( m_delegate )
m_delegate->showUnlockPopup(m_delegate, a2, a3);
}
return isColorUnlocked;
}