// // GameManager::iconKey from 0x3255e0 to 0x3256de (254 bytes) // // 3 xrefs: // > GameManager::isIconUnlocked @ 0x32574a // > GameManager::unlockIcon @ 0x3257ce // > GameManager::lockIcon @ 0x325826 // // 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 // int __fastcall GameManager::iconKey(int a1, int a2, int a3, unsigned int a4) { char *v6; // r3 char *v7; // r0 unsigned int v9[3]; // [sp+Ch] [bp-204h] BYREF char v10; // [sp+18h] [bp-1F8h] BYREF v9[1] = 500; v9[0] = 0; v9[2] = (unsigned int)&v10; if ( a4 == 6 ) { v6 = "spider_"; goto LABEL_22; } if ( a4 > 6 ) { if ( a4 == 98 ) { v6 = "death_"; goto LABEL_22; } if ( a4 > 0x62 ) { if ( a4 == 100 ) { v6 = "item_"; goto LABEL_22; } if ( a4 < 0x64 ) { v6 = "special_"; goto LABEL_22; } if ( a4 == 101 ) { v6 = "shipstreak_"; goto LABEL_22; } } else { if ( a4 == 7 ) { v6 = "swing_"; goto LABEL_22; } if ( a4 == 8 ) { v6 = "jetpack_"; goto LABEL_22; } } LABEL_28: fmt::BasicWriter::operator<<(v9, "i_", 0); goto LABEL_29; } if ( a4 == 3 ) { v6 = "bird_"; goto LABEL_22; } if ( a4 > 3 ) { if ( a4 == 4 ) v6 = "dart_"; else v6 = "robot_"; goto LABEL_22; } if ( a4 == 1 ) { v6 = "ship_"; goto LABEL_22; } if ( a4 != 2 ) goto LABEL_28; v6 = "ball_"; LABEL_22: fmt::BasicWriter::operator<<(v9, v6, 0); LABEL_29: fmt::BasicWriter::operator<<(v9, a3); v7 = (char *)fmt::BasicWriter::c_str((int *)v9); sub_776584(a1, v7); fmt::internal::Array::free((int)v9); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source