mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Apply the BUILDART patch at long last.
git-svn-id: https://svn.eduke32.com/eduke32@8000 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
00992a7ba5
commit
25bdd9f6d5
1 changed files with 16 additions and 0 deletions
|
@ -301,6 +301,22 @@ int32_t artReadHeader(buildvfs_kfd const fil, char const * const fn, artheader_t
|
|||
{
|
||||
int32_t artversion;
|
||||
kread(fil, &artversion, 4); artversion = B_LITTLE32(artversion);
|
||||
|
||||
if (artversion == B_LITTLE32(0x4c495542))
|
||||
{
|
||||
kread(fil, &artversion, 4); artversion = B_LITTLE32(artversion);
|
||||
if (artversion == B_LITTLE32(0x54524144))
|
||||
{
|
||||
kread(fil, &artversion, 4); artversion = B_LITTLE32(artversion);
|
||||
}
|
||||
else
|
||||
{
|
||||
initprintf("loadpics: Invalid art file, %s\n", fn);
|
||||
kclose(fil);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (artversion != 1)
|
||||
{
|
||||
initprintf("loadpics: Invalid art file version in %s\n", fn);
|
||||
|
|
Loading…
Reference in a new issue