From 45c1d4d26f626c649df963759a439d112b0657fd Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Sat, 7 Dec 2019 15:48:41 +0100 Subject: [PATCH] use GFX2_Log() in Load_FLI() --- src/miscfileformats.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/miscfileformats.c b/src/miscfileformats.c index b74deb15..b02a78e4 100644 --- a/src/miscfileformats.c +++ b/src/miscfileformats.c @@ -60,6 +60,7 @@ #include "help.h" #include "fileformats.h" #include "gfx2mem.h" +#include "gfx2log.h" //////////////////////////////////// PAL //////////////////////////////////// // @@ -4787,7 +4788,7 @@ void Load_FLI(T_IO_Context * context) fseek(file, 12, SEEK_SET); } else if (file_size != header.size) - Warning("Load_FLI(): file size mismatch in header"); + GFX2_Log(GFX2_WARNING, "Load_FLI(): file size mismatch in header %lu != %u\n", file_size, header.size); if (header.speed == 0) { @@ -5041,7 +5042,7 @@ void Load_FLI(T_IO_Context * context) } else { - Warning("Unsupported opcode"); + GFX2_Log(GFX2_WARNING, "Unsupported opcode %04x\n", opcode); File_error = 2; break; } @@ -5055,7 +5056,7 @@ void Load_FLI(T_IO_Context * context) } break; default: // skip - Warning("Load_FLI(): unrecognized chunk"); + GFX2_Log(GFX2_WARNING, "Load_FLI(): unrecognized chunk %04x\n", chunk_type); } if (chunk_size > 0 && header.size != 12) {