//
// CharacterColorPage::checkColor from 0x565084 to 0x5650b0 (44 bytes)
//
// 1 xrefs:
// > CharacterColorPage::onPlayerColor @ 0x56557c
//
// 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; // r0
_BOOL4 isColorUnlocked; // r4
CharacterColorDelegate *m_delegate; // r0
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;
}