mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-09 01:01:07 +00:00
snd_umx: don't overzealously restrict the loader to known upkg versions.
This commit is contained in:
parent
2e0146c7fb
commit
1439cc0547
1 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/**
|
||||
* Unreal UMX container support.
|
||||
* UPKG parsing partially based on Unreal Media Ripper (UMR) v0.3
|
||||
* by Andy Ward <wardwh@swbell.net>, 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)
|
||||
|
|
Loading…
Reference in a new issue