Fix remaining match() call in fastfile.xscript

Convert platform_u32 match to if-else chain.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
njohnson 2026-01-11 13:01:21 -05:00
parent 8430428a91
commit 144ed7b83d

View File

@ -36,12 +36,11 @@ type fastfile [root, display="Fast File"] byteorder LE
if (version_i == 14) { detected_platform = "WII"; }
// version match replaced
if (version_i > 276 && version_i < 1000) {
detected_platform = match(platform_u32,
0, "PC",
1, "XBOX360",
2, "PS3",
3, "WII",
4, "WIIU",
if (platform_u32 == 0) { detected_platform = "PC"; }
if (platform_u32 == 1) { detected_platform = "XBOX360"; }
if (platform_u32 == 2) { detected_platform = "PS3"; }
if (platform_u32 == 3) { detected_platform = "WII"; }
if (platform_u32 == 4) { detected_platform = "WIIU"; }
}
// Set globals early so they're available for all parsing