//
// InfoLayer::updateCommentModeButtons from 0x7e3ba8 to 0x7e3c88 (224 bytes)
//
// 5 xrefs:
// > InfoLayer::init @ 0x7e4398
// > InfoLayer::commentUploadFinished @ 0x7e5d4c
// > InfoLayer::toggleCommentMode @ 0x7e5dac
// > InfoLayer::toggleCommentMode @ 0x7e5de0
// > ??> @ 0xbdac8
//
// 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 InfoLayer::updateCommentModeButtons(InfoLayer *a1)
{
GameManager *v2; // x0
_BOOL4 GameVariable; // w21
ButtonSprite *v4; // x0
ButtonSprite *v5; // x0
ButtonSprite *v6; // x0
v2 = GameManager::sharedState();
GameVariable = GameManager::getGameVariable(v2, "0069");
v4 = (ButtonSprite *)a1->m_likeBtn->getNormalImage(a1->m_likeBtn);
if ( GameVariable )
{
ButtonSprite::updateBGImage(v4, "GJ_button_02.png");
v5 = (ButtonSprite *)a1->m_timeBtn->getNormalImage(a1->m_timeBtn);
ButtonSprite::updateBGImage(v5, "GJ_button_01.png");
}
else
{
ButtonSprite::updateBGImage(v4, "GJ_button_01.png");
v6 = (ButtonSprite *)a1->m_timeBtn->getNormalImage(a1->m_timeBtn);
ButtonSprite::updateBGImage(v6, "GJ_button_02.png");
}
a1->m_likeBtn->setEnabled(a1->m_likeBtn, !GameVariable);
a1->m_timeBtn->setEnabled(a1->m_timeBtn, GameVariable);
}