mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
W_VerifyNMUSlumps: Rewind back to beginning of file handle for WAD
This commit is contained in:
parent
2bd83082e4
commit
ebdd9b8b7e
1 changed files with 5 additions and 0 deletions
|
|
@ -2437,7 +2437,9 @@ int W_VerifyNMUSlumps(const char *filename, FILE *handle, boolean exit_on_error)
|
|||
int status = 0;
|
||||
|
||||
if (stricmp(&filename[strlen(filename) - 4], ".pk3") == 0)
|
||||
{
|
||||
status = W_VerifyPK3(handle, NMUSlist, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
// detect wad file by the absence of the other supported extensions
|
||||
|
|
@ -2445,6 +2447,9 @@ int W_VerifyNMUSlumps(const char *filename, FILE *handle, boolean exit_on_error)
|
|||
&& stricmp(&filename[strlen(filename) - 4], ".lua"))
|
||||
{
|
||||
status = W_VerifyWAD(handle, NMUSlist, false);
|
||||
|
||||
// repair file handle in this specific case
|
||||
fseek(handle, 0, SEEK_SET);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue