//
// UILayer::refreshDpad from 0x100049858 to 0x1000498e4 (140 bytes)
//
// 4 xrefs:
// > UILayer::init @ 0x100049494
// > UILayer::togglePlatformerMode @ 0x1000497c4
// > UILayer::updateDualMode @ 0x100049840
// > PlayLayer::resume @ 0x100122b3c
//
// 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 UILayer::refreshDpad(UILayer *a1)
{
GameManager *v2; // x0
GameManager *v3; // x0
__int64 v4; // x20
bool m_dualMode; // w22
GJUINode *v6; // x21
char *v7; // x0
if ( a1->m_inPlatformer )
{
v2 = GameManager::sharedState();
a1->m_dpadType = GameManager::getGameVariable(v2, "0113");
v3 = GameManager::sharedState();
GameManager::prepareDPadSettings(v3);
v4 = 0;
m_dualMode = a1->m_dualMode;
do
{
v6 = (GJUINode *)sub_10024A388(a1->m_uiNodes, v4);
v7 = sub_1000497DC(v4, a1->m_dualMode);
GJUINode::loadFromConfig(v6, (UIButtonConfig *)v7);
if ( (unsigned int)v4 > 2 )
break;
v4 = (unsigned int)(v4 + 1);
}
while ( m_dualMode );
}
}