// // GameManager::prepareDPadSettings from 0x5edc88 to 0x5ee038 (944 bytes) // // 5 xrefs: // > UILayer::refreshDpad @ 0x5c7e38 // > UILayer::init @ 0x5c7f78 // > GameManager::loadDPadLayout @ 0x5f0550 // > GameManager::dataLoaded @ 0x5fb044 // > @ 0xab4f8 // // 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 GameManager::prepareDPadSettings(GameManager *a1) { float v2; // s0 float v3; // s1 float v4; // s8 float v5; // s0 float v6; // s1 float v7; // s0 float v8; // s1 float m_scale; // s0 float v10; // s0 float v11; // s1 float v12; // s0 float v13; // s0 float v14; // s1 float v15; // s0 float v16; // s0 float v17; // s1 float x; // s8 float v19; // s0 float v20; // s1 cocos2d::CCPoint v21; // [xsp+60h] [xbp+60h] BYREF cocos2d::CCPoint v22; // [xsp+68h] [xbp+68h] BYREF cocos2d::CCPoint v23; // [xsp+70h] [xbp+70h] BYREF if ( a1->m_dpad1.m_scale <= 0.0 ) { a1->m_dpad1.m_width = 280; a1->m_dpad1.m_deadzone = 0.0; a1->m_dpad1.m_height = 120; a1->m_dpad1.m_modeB = 0; a1->m_dpad1.m_opacity = 255; a1->m_dpad1.m_scale = 1.0; a1->m_dpad1.m_radius = 10.0; cocos2d::CCPoint::CCPoint(&v23, 95.0, 36.0); cocos2d::CCPoint::operator=(&a1->m_dpad1.m_position, v7, v8); a1->m_dpad1.m_oneButton = 0; m_scale = a1->m_dpad2.m_scale; a1->m_dpad1.m_player2 = 0; a1->m_dpad1.m_snap = 0; a1->m_dpad1.m_split = 0; if ( m_scale > 0.0 ) { LABEL_3: if ( a1->m_dpad3.m_scale > 0.0 ) goto LABEL_4; LABEL_10: a1->m_dpad3.m_width = 280; a1->m_dpad3.m_deadzone = 0.0; a1->m_dpad3.m_height = 120; a1->m_dpad3.m_modeB = 0; a1->m_dpad3.m_opacity = 255; a1->m_dpad3.m_scale = 1.0; a1->m_dpad3.m_radius = 10.0; cocos2d::CCPoint::CCPoint(&v23, 95.0, 36.0); cocos2d::CCPoint::operator=(&a1->m_dpad3.m_position, v13, v14); a1->m_dpad3.m_oneButton = 0; v15 = a1->m_dpad4.m_scale; a1->m_dpad3.m_player2 = 0; a1->m_dpad3.m_snap = 0; a1->m_dpad3.m_split = 0; if ( v15 > 0.0 ) goto LABEL_5; goto LABEL_11; } } else if ( a1->m_dpad2.m_scale > 0.0 ) { goto LABEL_3; } a1->m_dpad2.m_width = 280; a1->m_dpad2.m_deadzone = 0.0; a1->m_dpad2.m_height = 120; a1->m_dpad2.m_modeB = 0; a1->m_dpad2.m_opacity = 255; a1->m_dpad2.m_scale = 1.0; a1->m_dpad2.m_radius = 10.0; cocos2d::CCPoint::CCPoint(&v23, 95.0, 36.0); cocos2d::CCPoint::operator=(&a1->m_dpad2.m_position, v10, v11); a1->m_dpad2.m_oneButton = 0; v12 = a1->m_dpad3.m_scale; a1->m_dpad2.m_player2 = 0; a1->m_dpad2.m_snap = 0; a1->m_dpad2.m_split = 0; if ( v12 <= 0.0 ) goto LABEL_10; LABEL_4: if ( a1->m_dpad4.m_scale > 0.0 ) goto LABEL_5; LABEL_11: a1->m_dpad4.m_width = 280; a1->m_dpad4.m_height = 120; a1->m_dpad4.m_deadzone = 0.0; a1->m_dpad4.m_opacity = 255; a1->m_dpad4.m_modeB = 0; a1->m_dpad4.m_scale = 1.0; a1->m_dpad4.m_radius = 10.0; cocos2d::CCPoint::CCPoint(&v23, 95.0, 36.0); cocos2d::CCPoint::operator=(&a1->m_dpad4.m_position, v16, v17); a1->m_dpad4.m_oneButton = 0; a1->m_dpad4.m_width = 200; a1->m_dpad4.m_height = 200; a1->m_dpad4.m_player2 = 0; a1->m_dpad4.m_snap = 0; a1->m_dpad4.m_split = 0; cocos2d::CCPoint::CCPoint(&v22, 95.0, 36.0); x = v22.x; cocos2d::CCPoint::CCPoint(&v21, 95.0, 36.0); cocos2d::CCPoint::CCPoint(&v23, x, (float)(v21.y + 60.0) + 100.0); cocos2d::CCPoint::operator=(&a1->m_dpad4.m_position, v19, v20); a1->m_dpad4.m_oneButton = 1; LABEL_5: if ( a1->m_dpad5.m_scale <= 0.0 ) { a1->m_dpad5.m_width = 280; a1->m_dpad5.m_height = 120; a1->m_dpad5.m_deadzone = 0.0; a1->m_dpad5.m_opacity = 255; a1->m_dpad5.m_modeB = 0; a1->m_dpad5.m_scale = 1.0; a1->m_dpad5.m_radius = 10.0; cocos2d::CCPoint::CCPoint(&v23, 95.0, 36.0); cocos2d::CCPoint::operator=(&a1->m_dpad5.m_position, v2, v3); a1->m_dpad5.m_oneButton = 0; a1->m_dpad5.m_width = 200; a1->m_dpad5.m_height = 200; a1->m_dpad5.m_player2 = 0; a1->m_dpad5.m_snap = 0; a1->m_dpad5.m_split = 0; cocos2d::CCPoint::CCPoint(&v22, 95.0, 36.0); v4 = v22.x; cocos2d::CCPoint::CCPoint(&v21, 95.0, 36.0); cocos2d::CCPoint::CCPoint(&v23, v4, (float)(v21.y + 60.0) + 100.0); cocos2d::CCPoint::operator=(&a1->m_dpad5.m_position, v5, v6); } a1->m_dpad4.m_oneButton = 1; a1->m_dpad5.m_oneButton = 1; a1->m_dpad3.m_player2 = 1; a1->m_dpad5.m_player2 = 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source