From 80ff833dd8ad011b579bff26ac654819e6735bce Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sat, 25 Jul 2015 18:22:07 -0700 Subject: Use a new fatal_error function instead of calling fprintf and exit for fatal errors. This new function more gracefully handles the case in which BlastEm was not started from a terminal or disconnected from ther terminal (Windows). --- vgmplay.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'vgmplay.c') diff --git a/vgmplay.c b/vgmplay.c index 879a399..0473a40 100644 --- a/vgmplay.c +++ b/vgmplay.c @@ -282,8 +282,7 @@ int main(int argc, char ** argv) wait(&y_context, &p_context, ¤t_cycle, wait_time); } } else { - printf("unimplemented command: %X at offset %X\n", cmd, (unsigned int)(cur - data - 1)); - exit(1); + fatal_error("unimplemented command: %X at offset %X\n", cmd, (unsigned int)(cur - data - 1)); } } } -- cgit v1.2.3 From 25fc1e88deea8253d9d4b8084485e176eb69abd0 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sun, 26 Jul 2015 01:09:05 -0700 Subject: Fix missing includes of util.h --- vgmplay.c | 1 + 1 file changed, 1 insertion(+) (limited to 'vgmplay.c') diff --git a/vgmplay.c b/vgmplay.c index 0473a40..f87c570 100644 --- a/vgmplay.c +++ b/vgmplay.c @@ -7,6 +7,7 @@ #include "ym2612.h" #include "psg.h" #include "config.h" +#include "util.h" #include #include -- cgit v1.2.3