mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 22:01:50 +00:00
Introducing a new concept to Unix and Windows coders worldwide: Error checking.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1170 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
5f7f5e662e
commit
a58cf9c17a
1 changed files with 11 additions and 8 deletions
|
@ -1316,10 +1316,13 @@ void VARGS Menu_Abort (char *format, ...)
|
|||
char *buffer;
|
||||
int size = 1024*1024*8;
|
||||
buffer = Z_Malloc(size);
|
||||
if (buffer)
|
||||
{
|
||||
menuprogs->save_ents(menuprogs, buffer, &size, 3);
|
||||
COM_WriteFile("menucore.txt", buffer, size);
|
||||
Z_Free(buffer);
|
||||
}
|
||||
}
|
||||
|
||||
MP_Shutdown();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue