Restore file loading

git-svn-id: https://svn.eduke32.com/eduke32@7679 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2019-05-19 20:02:02 +00:00 committed by Christoph Oelckers
parent dd5f1338c5
commit d2609f07a9

View file

@ -292,22 +292,6 @@ int32_t artReadHeader(buildvfs_kfd const fil, char const * const fn, artheader_t
{ {
int32_t artversion; int32_t artversion;
kread(fil, &artversion, 4); artversion = B_LITTLE32(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) if (artversion != 1)
{ {
initprintf("loadpics: Invalid art file version in %s\n", fn); initprintf("loadpics: Invalid art file version in %s\n", fn);