From 1439cc05478069c268fdd3d1979a8fb384cc43b8 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Tue, 28 Dec 2021 03:21:10 +0300 Subject: [PATCH] snd_umx: don't overzealously restrict the loader to known upkg versions. --- Quake/snd_umx.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Quake/snd_umx.c b/Quake/snd_umx.c index d6f4b91c..6c632179 100644 --- a/Quake/snd_umx.c +++ b/Quake/snd_umx.c @@ -1,4 +1,4 @@ -/* +/** * Unreal UMX container support. * UPKG parsing partially based on Unreal Media Ripper (UMR) v0.3 * by Andy Ward , with additional updates @@ -304,6 +304,9 @@ static int32_t probe_header (fshandle_t *f, struct upkg_hdr *hdr) return -1; } +#if 1 /* no need being overzealous */ + return 0; +#else switch (hdr->file_version) { case 35: case 37: /* Unreal beta - */ case 40: case 41: /* 1998 */ @@ -322,6 +325,7 @@ static int32_t probe_header (fshandle_t *f, struct upkg_hdr *hdr) Con_DPrintf("Unknown upkg version %d\n", hdr->file_version); return -1; +#endif /* #if 0 */ } static int process_upkg (fshandle_t *f, int32_t *ofs, int32_t *objsize)