mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
[qwaq] Use Sys_Printf for load error messages
It gets them into the log file.
This commit is contained in:
parent
bb0e65e9d4
commit
89cf9f9523
1 changed files with 3 additions and 1 deletions
|
@ -32,6 +32,8 @@
|
|||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "QF/cbuf.h"
|
||||
#include "QF/cmd.h"
|
||||
|
@ -60,7 +62,7 @@ open_file (const char *path, int *len)
|
|||
QFile *file = Qopen (path, "rbz");
|
||||
|
||||
if (!file) {
|
||||
perror (path);
|
||||
Sys_Printf ("%s\n", sys_errlist[errno]);
|
||||
return 0;
|
||||
}
|
||||
*len = Qfilesize (file);
|
||||
|
|
Loading…
Reference in a new issue