Add GFX2_Log() function

This commit is contained in:
Thomas Bernard
2018-07-11 19:40:12 +02:00
parent 221515e663
commit 7fb77f85f1
8 changed files with 133 additions and 14 deletions

View File

@@ -47,6 +47,7 @@
#include <SDL_endian.h>
#endif
#include "gfx2log.h"
#include "buttons.h"
#include "const.h"
#include "errors.h"
@@ -624,7 +625,7 @@ void Load_image(T_IO_Context *context)
if (File_error>0)
{
fprintf(stderr,"Unable to load file %s (error %d)!\n",context->File_name, File_error);
GFX2_Log(GFX2_WARNING, "Unable to load file %s (error %d)! format:%s\n", context->File_name, File_error, format->Label);
if (context->Type!=CONTEXT_SURFACE)
Error(0);
}