mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-07 08:21:59 +00:00
fix debug crc generation
This commit is contained in:
parent
3eedd3d8fc
commit
5c31fbf366
1 changed files with 3 additions and 2 deletions
|
@ -359,13 +359,14 @@ WriteData (int crc)
|
||||||
|
|
||||||
fseek (h, 0, SEEK_SET);
|
fseek (h, 0, SEEK_SET);
|
||||||
SafeWrite (h, &progs, sizeof (progs));
|
SafeWrite (h, &progs, sizeof (progs));
|
||||||
|
fclose (h);
|
||||||
|
|
||||||
fseek (h, 0, SEEK_SET);
|
|
||||||
if (!options.debug) {
|
if (!options.debug) {
|
||||||
fclose (h);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h = SafeOpenRead (destfile);
|
||||||
|
|
||||||
debug.version = LittleLong (PROG_DEBUG_VERSION);
|
debug.version = LittleLong (PROG_DEBUG_VERSION);
|
||||||
CRC_Init (&debug.crc);
|
CRC_Init (&debug.crc);
|
||||||
while ((i = fgetc (h)) != EOF)
|
while ((i = fgetc (h)) != EOF)
|
||||||
|
|
Loading…
Reference in a new issue