//
// SupportLayer::onLowDetail from 0x42ca28 to 0x42caba (146 bytes)
//
// 0 xrefs:
//
// 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 SupportLayer::onLowDetail(SupportLayer *a1, cocos2d::CCObject *a2)
{
GameManager *v2; // r0
GameManager *v3; // r4
GameManager *v4; // r0
int m_showedLowDetailDialog; // r6
FLAlertLayer *v6; // r6
_BYTE v7[4]; // [sp+10h] [bp-8h] BYREF
v2 = GameManager::sharedState();
GameManager::unloadBackground(v2);
v3 = GameManager::sharedState();
v3->m_performanceMode = !GameManager::sharedState()->m_performanceMode;
v4 = GameManager::sharedState();
m_showedLowDetailDialog = v4->m_showedLowDetailDialog;
if ( !v4->m_showedLowDetailDialog )
{
GameManager::sharedState()->m_showedLowDetailDialog = 1;
sub_776584((int)v7, "Low detail mode disables a lot of visual effects to increase performance.");
v6 = FLAlertLayer::create(
m_showedLowDetailDialog,
(int)"Low Detail Mode",
(int)v7,
(int)"OK",
m_showedLowDetailDialog,
300.0);
sub_774008(v7);
v6->show(v6);
}
}