From 28b8256fddf53446898120f9b51a43f132d946bb Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Wed, 10 Jul 2013 09:38:05 -0700 Subject: Add config file parser and default config file --- blastem.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'blastem.c') diff --git a/blastem.c b/blastem.c index dfa950d..2a02b31 100644 --- a/blastem.c +++ b/blastem.c @@ -35,6 +35,8 @@ int headless = 0; int z80_enabled = 1; int frame_limit = 0; +tern_node * config; + #ifndef MIN #define MIN(a,b) ((a) < (b) ? (a) : (b)) #endif @@ -1871,13 +1873,14 @@ void detect_region() int main(int argc, char ** argv) { if (argc < 2) { - fputs("Usage: blastem FILENAME\n", stderr); + fputs("Usage: blastem FILENAME [options]\n", stderr); return 1; } if(!load_rom(argv[1])) { fprintf(stderr, "Failed to open %s for reading\n", argv[1]); return 1; } + config = load_config(argv[0]); detect_region(); int width = -1; int height = -1; -- cgit v1.2.3