summaryrefslogtreecommitdiff
path: root/vgmplay.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-07-25 18:22:07 -0700
committerMichael Pavone <pavone@retrodev.com>2015-07-25 18:22:07 -0700
commit80ff833dd8ad011b579bff26ac654819e6735bce (patch)
tree14f667ebb4739fd60780890884b98ce43e6b2e74 /vgmplay.c
parent7406c8bf64624feff0bf982e4667a194d31f8484 (diff)
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).
Diffstat (limited to 'vgmplay.c')
-rw-r--r--vgmplay.c3
1 files changed, 1 insertions, 2 deletions
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, &current_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));
}
}
}