//
// UILayer::refreshDpad from 0x30df80 to 0x30dfd6 (86 bytes)
//
// 2 xrefs:
// > UILayer::togglePlatformerMode @ 0x30dfe4
// > PlayLayer::resume @ 0x314722
//
// 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 UILayer::refreshDpad(UILayer *a1)
{
GameManager *v2; // r0
unsigned int v3; // r4
GameManager *v4; // r0
int v5; // r6
GJUINode *v6; // r7
UIButtonConfig *DpadSetting; // r0
if ( a1->m_inPlatformer )
{
v2 = GameManager::sharedState();
v3 = 0;
a1->m_dpadType = GameManager::getGameVariable(v2, "0113");
v4 = GameManager::sharedState();
GameManager::prepareDPadSettings(v4);
if ( a1->m_dualMode )
v5 = 4;
else
v5 = 1;
do
{
v6 = (GJUINode *)cocos2d::CCArray::objectAtIndex(a1->m_uiNodes, v3);
DpadSetting = getDpadSetting(v3++, a1->m_dualMode);
GJUINode::loadFromConfig(v6, DpadSetting);
}
while ( v3 != v5 );
}
}