// // GameManager::sheetNameForIcon from 0x41d318 to 0x41d46c (340 bytes) // // 3 xrefs: // > GameManager::unloadIcon @ 0x41d50e // > GameManager::loadIcon @ 0x41d68e // > GameManager::loadIconAsync @ 0x41d8c2 // // 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:59 +0000 // GameManager *__fastcall GameManager::sheetNameForIcon(GameManager *this, int a2, int a3, int a4) { GameManager *v5; // r5 char *v6; // r1 const char *v7; // r1 size_t v8; // r2 const char *v10; // r0 const char *v11; // r6 size_t v12; // r0 const char *v13; // [sp+0h] [bp-14h] BYREF size_t v14; // [sp+4h] [bp-10h] int v15; // [sp+8h] [bp-Ch] BYREF size_t v16; // [sp+Ch] [bp-8h] int v17; // [sp+10h] [bp-4h] int v18[3]; // [sp+14h] [bp+0h] BYREF char v19; // [sp+20h] [bp+Ch] BYREF v5 = this; v18[1] = 500; v18[2] = (int)&v19; v18[0] = 0; v15 = 0; v16 = 0; v17 = 0; switch ( a4 ) { case 0: v6 = "player_"; goto LABEL_11; case 1: v6 = "ship_"; goto LABEL_11; case 2: v6 = "player_ball_"; goto LABEL_11; case 3: v6 = "bird_"; goto LABEL_11; case 4: v6 = "dart_"; goto LABEL_11; case 5: v6 = "robot_"; goto LABEL_11; case 6: v6 = "spider_"; goto LABEL_11; case 7: v6 = "swing_"; goto LABEL_11; case 8: v6 = "jetpack_"; LABEL_11: std::string::assign(&v15, v6); if ( (v15 & 1) != 0 ) v8 = v16; else v8 = (int)(unsigned __int8)v15 >> 1; if ( v8 ) { v13 = "icons/"; v14 = 0; fmt::BasicWriter::operator<<((unsigned int *)v18, "icons/", 0); fmt::BasicStringRef::BasicStringRef((unsigned __int8 **)&v13, (unsigned __int8 *)&v15); fmt::BasicWriter::operator<<((unsigned int *)v18, v13, v14); if ( a3 <= 9 ) { v13 = "0"; v14 = 0; fmt::BasicWriter::operator<<((unsigned int *)v18, "0", 0); } fmt::BasicWriter::operator<<((unsigned int *)v18, a3); v10 = (const char *)fmt::BasicWriter::c_str(v18); *(_DWORD *)v5 = 0; *((_DWORD *)v5 + 1) = 0; v11 = v10; *((_DWORD *)v5 + 2) = 0; v12 = strlen(v10); v7 = v11; v8 = v12; this = v5; } else { this = v5; *(_DWORD *)v5 = 0; *((_DWORD *)v5 + 1) = 0; v7 = (const char *)&unk_B6B226; *((_DWORD *)v5 + 2) = 0; } break; default: *(_DWORD *)this = 0; v7 = (const char *)&unk_B6B226; *((_DWORD *)this + 1) = 0; *((_DWORD *)this + 2) = 0; v8 = 0; break; } std::string::__init((int *)this, v7, v8); std::string::~string((int)&v15); fmt::internal::Array::free((int)v18); return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source