comparison blastem.c @ 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 fc04781f4d28
comparison
equal deleted inserted replaced
682:7ed1dbb48f61 683:70de0bdf8e97
1118 fputs("Usage: blastem [OPTIONS] ROMFILE [WIDTH] [HEIGHT]\n", stderr); 1118 fputs("Usage: blastem [OPTIONS] ROMFILE [WIDTH] [HEIGHT]\n", stderr);
1119 return 1; 1119 return 1;
1120 } 1120 }
1121 set_exe_str(argv[0]); 1121 set_exe_str(argv[0]);
1122 config = load_config(); 1122 config = load_config();
1123 detect_region();
1124 int width = -1; 1123 int width = -1;
1125 int height = -1; 1124 int height = -1;
1126 int debug = 0; 1125 int debug = 0;
1127 int ym_log = 0; 1126 int ym_log = 0;
1128 int loaded = 0; 1127 int loaded = 0;
1240 fputs("You must specify a ROM filename!\n", stderr); 1239 fputs("You must specify a ROM filename!\n", stderr);
1241 return 1; 1240 return 1;
1242 } 1241 }
1243 if (force_version) { 1242 if (force_version) {
1244 version_reg = force_version; 1243 version_reg = force_version;
1244 } else {
1245 detect_region();
1245 } 1246 }
1246 update_title(); 1247 update_title();
1247 int def_width = 0; 1248 int def_width = 0;
1248 char *config_width = tern_find_ptr(config, "videowidth"); 1249 char *config_width = tern_find_ptr(config, "videowidth");
1249 if (config_width) { 1250 if (config_width) {