//
// LevelInfoLayer::likedItem from 0x10002ac70 to 0x10002acd8 (104 bytes)
//
// 2 xrefs:
// > sub_10002ACD8 @ 0x10002acdc
// > ??> @ 0x100764a28
//
// 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 __fastcall LevelInfoLayer::likedItem(LevelInfoLayer *a1, LikeItemType a2, int a3, bool a4)
{
_BOOL4 v4; // w20
GJGameLevel *m_level; // x8
if ( a1->m_level->m_levelID.random - a1->m_level->m_levelID.seed == a3 )
{
v4 = a4;
LevelInfoLayer::updateSideButtons(a1);
m_level = a1->m_level;
if ( v4 )
++m_level->m_likes;
else
++m_level->m_dislikes;
LevelInfoLayer::updateLabelValues(a1);
}
}