changeset 683:70de0bdf8e97

Move detect_region down so that it once again occurs after load_rom since it won't work before the ROM is loaded
author Michael Pavone <pavone@retrodev.com>
date Tue, 06 Jan 2015 19:09:00 -0800
parents 7ed1dbb48f61
children 943b9323bf60
files blastem.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/blastem.c	Sun Jan 04 23:35:55 2015 -0800
+++ b/blastem.c	Tue Jan 06 19:09:00 2015 -0800
@@ -1120,7 +1120,6 @@
 	}
 	set_exe_str(argv[0]);
 	config = load_config();
-	detect_region();
 	int width = -1;
 	int height = -1;
 	int debug = 0;
@@ -1242,6 +1241,8 @@
 	}
 	if (force_version) {
 		version_reg = force_version;
+	} else {
+		detect_region();
 	}
 	update_title();
 	int def_width = 0;