mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
don't write to the logfile if it doesn't open correctly (eg permissions) #930
This commit is contained in:
parent
d1129ffa36
commit
dc23dc6be7
|
@ -27,6 +27,8 @@ inline void LOG( u16 type, const char * format, ... ) {
|
||||||
if (type > LOG_LEVEL)
|
if (type > LOG_LEVEL)
|
||||||
return;
|
return;
|
||||||
FILE *dumpFile = fopen( "gliden64.log", "a+" );
|
FILE *dumpFile = fopen( "gliden64.log", "a+" );
|
||||||
|
if (dumpFile == NULL)
|
||||||
|
return;
|
||||||
va_list va;
|
va_list va;
|
||||||
va_start( va, format );
|
va_start( va, format );
|
||||||
vfprintf( dumpFile, format, va );
|
vfprintf( dumpFile, format, va );
|
||||||
|
|
Loading…
Reference in New Issue
Block a user