summaryrefslogtreecommitdiff
path: root/stateview.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-07-26 13:25:31 -0700
committerMichael Pavone <pavone@retrodev.com>2015-07-26 13:25:31 -0700
commit3372e57c62e3ff5f93c5541ef5b969229d132463 (patch)
treedf1a91e13ebef01d2ad636bd940c7e514a6919ff /stateview.c
parent4755aa94deb0a8fb90bf74033d370e9370d69ca2 (diff)
parentbee8b42029900ca034675c54d98813a61ca4407a (diff)
Merge
Diffstat (limited to 'stateview.c')
-rw-r--r--stateview.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/stateview.c b/stateview.c
index 751d2af..3f860e7 100644
--- a/stateview.c
+++ b/stateview.c
@@ -7,6 +7,7 @@
#include <stdio.h>
#include "vdp.h"
#include "render.h"
+#include "util.h"
#include "blastem.h"
//not used, but referenced by the renderer since it handles input
@@ -61,13 +62,11 @@ int headless = 0;
int main(int argc, char ** argv)
{
if (argc < 2) {
- fprintf(stderr, "Usage: stateview FILENAME\n");
- exit(1);
+ fatal_error("Usage: stateview FILENAME\n");
}
FILE * state_file = fopen(argv[1], "rb");
if (!state_file) {
- fprintf(stderr, "Failed to open %s\n", argv[1]);
- exit(1);
+ fatal_error("Failed to open %s\n", argv[1]);
}
config = load_config(argv[0]);
int width = -1;