//
// UIOptionsLayer::onReset from 0x1002e3da0 to 0x1002e3e10 (112 bytes)
//
// 1 xrefs:
// > UIOptionsLayer::init @ 0x1002e2900
//
// 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 UIOptionsLayer::onReset(UIOptionsLayer *a1, cocos2d::CCObject *a2)
{
GameManager *v3; // x0
bool m_dual; // w8
GameManager *v5; // x0
UIOptionsLayer *v6; // x0
((void (__fastcall *)(UIOptionsLayer *, _QWORD))a1->onClose)(a1, 0);
v3 = GameManager::sharedState();
GameManager::resetDPadSettings(v3, a1->m_dual);
if ( a1->m_dual )
{
m_dual = 1;
}
else
{
v5 = GameManager::sharedState();
GameManager::setGameVariable(v5, "0113", 0);
m_dual = a1->m_dual;
}
v6 = UIOptionsLayer::create(m_dual);
((void (__fastcall *)(UIOptionsLayer *))v6->show)(v6);
}