// // GameManager::loadDPadLayout from 0x4176e8 to 0x417866 (382 bytes) // // 2 xrefs: // > UISaveLoadLayer::onLoad @ 0x5ddb1c // > ControlSlotsPopup::onLoad @ 0x7a4522 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:47:41 +0000 // int __fastcall GameManager::loadDPadLayout(GameManager *this, int a2, int a3) { unsigned __int8 *v4; // r0 GameManager *v5; // r0 GameManager *v6; // r7 const char *v7; // r0 _BOOL4 v8; // r2 unsigned __int8 *v9; // r0 int v11; // [sp+0h] [bp-40h] BYREF int v12; // [sp+4h] [bp-3Ch] int v13; // [sp+8h] [bp-38h] int v14[3]; // [sp+Ch] [bp-34h] BYREF int v15[3]; // [sp+18h] [bp-28h] BYREF int v16[3]; // [sp+24h] [bp-1Ch] BYREF int v17[3]; // [sp+30h] [bp-10h] BYREF if ( a3 ) { if ( a2 == 1 ) { v9 = (unsigned __int8 *)this + 1244; } else if ( a2 == 2 ) { v9 = (unsigned __int8 *)this + 1256; } else { v9 = (unsigned __int8 *)this + 1268; } v11 = 0; v12 = 0; v13 = 0; sub_4173C4(v9, ";", &v11); if ( (unsigned int)(-1431655765 * ((v12 - v11) >> 2)) > 3 ) { std::string::basic_string(v14, v11); GameManager::loadDpadFromString((int)this, (int)this + 1048, (unsigned __int8 *)v14); std::string::~string((int)v14); std::string::basic_string(v15, v11 + 12); GameManager::loadDpadFromString((int)this, (int)this + 1088, (unsigned __int8 *)v15); std::string::~string((int)v15); std::string::basic_string(v16, v11 + 24); GameManager::loadDpadFromString((int)this, (int)this + 1128, (unsigned __int8 *)v16); std::string::~string((int)v16); std::string::basic_string(v17, v11 + 36); GameManager::loadDpadFromString((int)this, (int)this + 1168, (unsigned __int8 *)v17); std::string::~string((int)v17); } } else { if ( a2 == 1 ) { v4 = (unsigned __int8 *)this + 1208; } else if ( a2 == 2 ) { v4 = (unsigned __int8 *)this + 1220; } else { v4 = (unsigned __int8 *)this + 1232; } v11 = 0; v12 = 0; v13 = 0; sub_4173C4(v4, ";", &v11); if ( (unsigned int)(-1431655765 * ((v12 - v11) >> 2)) > 1 ) { std::string::basic_string(v17, v11); GameManager::loadDpadFromString((int)this, (int)this + 1008, (unsigned __int8 *)v17); v5 = (GameManager *)std::string::~string((int)v17); v6 = (GameManager *)GameManager::sharedState(v5); if ( (byte_9[v11 + 3] & 1) != 0 ) v7 = *(const char **)(v11 + 20); else v7 = (const char *)(v11 + 13); v8 = atoi(v7) != 0; GameManager::setGameVariable(v6, "0113", (const char *)v8); } } std::__vector_base::~__vector_base((int)&v11); return GameManager::prepareDPadSettings((int)this); }
GD Web Decomp Icon

GD Web Decomp

Raw Source