diff blastem.c @ 430:7f84090ab1cd

Add config file parser and default config file
author Mike Pavone <pavone@retrodev.com>
date Wed, 10 Jul 2013 09:38:05 -0700
parents 8b3ae850d1c4
children ed4d0017c041
line wrap: on
line diff
--- a/blastem.c	Tue Jul 09 20:51:42 2013 -0700
+++ b/blastem.c	Wed Jul 10 09:38:05 2013 -0700
@@ -35,6 +35,8 @@
 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 @@
 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;