// // GameManager::sheetNameForIcon from 0x329250 to 0x32938a (314 bytes) // // 3 xrefs: // > GameManager::unloadIcon @ 0x32943a // > GameManager::loadIcon @ 0x32960e // > GameManager::loadIconAsync @ 0x32980c // // 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 // GameManager *__fastcall GameManager::sheetNameForIcon(GameManager *this, int a2, int a3, int a4) { GameManager *v5; // r7 char *v6; // r1 char *v7; // r1 char *v9; // [sp+0h] [bp-214h] BYREF const char *v10; // [sp+4h] [bp-210h] size_t v11; // [sp+8h] [bp-20Ch] unsigned int v12[3]; // [sp+Ch] [bp-208h] BYREF char v13; // [sp+18h] [bp-1FCh] BYREF v5 = this; v9 = (char *)&unk_ACDDA8; v12[0] = 0; v12[1] = 500; v12[2] = (unsigned int)&v13; 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: sub_7753D4((int)&v9, v6); if ( *((_DWORD *)v9 - 3) ) { v10 = "icons/"; v11 = 0; fmt::BasicWriter::operator<<(v12, "icons/", 0); v10 = v9; v11 = *((_DWORD *)v9 - 3); fmt::BasicWriter::operator<<(v12, v9, v11); if ( a3 <= 9 ) { v10 = "0"; v11 = 0; fmt::BasicWriter::operator<<(v12, "0", 0); } fmt::BasicWriter::operator<<(v12, a3); v7 = (char *)fmt::BasicWriter::c_str((int *)v12); this = v5; } else { this = v5; v7 = (char *)&unk_939830; } break; default: v7 = (char *)&unk_939830; break; } sub_776584((int)this, v7); sub_774008(&v9); fmt::internal::Array::free((int)v12); return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source