1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

don't write to the logfile if it doesn't open correctly (eg permissions) #930

This commit is contained in:
Jools Wills 2016-03-24 01:55:19 +00:00 committed by Sergey Lipskiy
parent d1129ffa36
commit dc23dc6be7

View File

@ -27,6 +27,8 @@ inline void LOG( u16 type, const char * format, ... ) {
if (type > LOG_LEVEL)
return;
FILE *dumpFile = fopen( "gliden64.log", "a+" );
if (dumpFile == NULL)
return;
va_list va;
va_start( va, format );
vfprintf( dumpFile, format, va );