should fix dreamcast issues, and some slowness issues with non-fte engines (even on x86). engines using qclib will be unaffected, hence why the bug lasted this long.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2309 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2006-05-30 22:21:10 +00:00
parent 22ad876a50
commit 4a38e63e43
1 changed files with 5 additions and 1 deletions

View File

@ -785,9 +785,13 @@ strofs = (strofs+3)&~3;
printf("Writing %s\n", destfile);
h = SafeOpenWrite (destfile, 2*1024*1024);
SafeWrite (h, &progs, sizeof(progs));
SafeWrite (h, "\r\n", 2);
SafeWrite (h, "\r\n\r\n", 2);
SafeWrite (h, QCC_copyright, strlen(QCC_copyright)+1);
SafeWrite (h, "\r\n\r\n", 4);
while(SafeSeek (h, 0, SEEK_CUR) & 3)//this is a lame way to do it
{
SafeWrite (h, "\0", 1);
}
progs.ofs_strings = SafeSeek (h, 0, SEEK_CUR);
progs.numstrings = strofs;