//
// VideoOptionsLayer::updateTextureQuality from 0x424498 to 0x4244f0 (88 bytes)
//
// 3 xrefs:
// > VideoOptionsLayer::onTextureQualityPrev @ 0x42450a
// > VideoOptionsLayer::onTextureQualityNext @ 0x424514
// > VideoOptionsLayer::init @ 0x42545c
//
// 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 VideoOptionsLayer::updateTextureQuality(VideoOptionsLayer *a1, int a2)
{
cocos2d::CCLabelBMFont *m_qualityLabel; // r0
const char *v4; // r1
if ( a2 > 3 )
{
a2 = 0;
}
else if ( a2 < 0 )
{
a2 = 3;
}
m_qualityLabel = a1->m_qualityLabel;
a1->m_textureQuality = a2;
switch ( a2 )
{
case 2:
v4 = "Medium";
break;
case 3:
v4 = "High";
break;
case 1:
v4 = "Low";
break;
default:
v4 = "Auto";
break;
}
m_qualityLabel->setString(m_qualityLabel, (const unsigned __int8 *)v4);
cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_qualityLabel, 100.0, 0.75, 0.0);
}