Mercurial > repos > blastem
comparison blastem.c @ 1017:216fa63749b3
Added documentation for lock-on support and a fullscreen config option.
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 02 May 2016 21:35:19 -0700 |
parents | 5fb64487b6e1 |
children | dba8c630bdbf |
comparison
equal
deleted
inserted
replaced
1016:5fb64487b6e1 | 1017:216fa63749b3 |
---|---|
1151 info_message( | 1151 info_message( |
1152 "Usage: blastem [OPTIONS] ROMFILE [WIDTH] [HEIGHT]\n" | 1152 "Usage: blastem [OPTIONS] ROMFILE [WIDTH] [HEIGHT]\n" |
1153 "Options:\n" | 1153 "Options:\n" |
1154 " -h Print this help text\n" | 1154 " -h Print this help text\n" |
1155 " -r (J|U|E) Force region to Japan, US or Europe respectively\n" | 1155 " -r (J|U|E) Force region to Japan, US or Europe respectively\n" |
1156 " -f Start in fullscreen mode\n" | 1156 " -f Toggles fullscreen mode\n" |
1157 " -g Disable OpenGL rendering\n" | 1157 " -g Disable OpenGL rendering\n" |
1158 " -s FILE Load a GST format savestate from FILE\n" | 1158 " -s FILE Load a GST format savestate from FILE\n" |
1159 " -o FILE Load FILE as a lock-on cartridge\n" | |
1159 " -d Enter debugger on startup\n" | 1160 " -d Enter debugger on startup\n" |
1160 " -n Disable Z80\n" | 1161 " -n Disable Z80\n" |
1161 " -v Display version number and exit\n" | 1162 " -v Display version number and exit\n" |
1162 " -l Log 68K code addresses (useful for assemblers)\n" | 1163 " -l Log 68K code addresses (useful for assemblers)\n" |
1163 " -y Log individual YM-2612 channels to WAVE files\n" | 1164 " -y Log individual YM-2612 channels to WAVE files\n" |
1239 width = width < 320 ? def_width : width; | 1240 width = width < 320 ? def_width : width; |
1240 height = height < 240 ? (width/320) * 240 : height; | 1241 height = height < 240 ? (width/320) * 240 : height; |
1241 uint32_t fps = 60; | 1242 uint32_t fps = 60; |
1242 if (version_reg & 0x40) { | 1243 if (version_reg & 0x40) { |
1243 fps = 50; | 1244 fps = 50; |
1245 } | |
1246 char *config_fullscreen = tern_find_path(config, "video\0fullscreen\0").ptrval; | |
1247 if (config_fullscreen && !strcmp("on", config_fullscreen)) { | |
1248 fullscreen = !fullscreen; | |
1244 } | 1249 } |
1245 if (!headless) { | 1250 if (!headless) { |
1246 render_init(width, height, title, fps, fullscreen); | 1251 render_init(width, height, title, fps, fullscreen); |
1247 } | 1252 } |
1248 | 1253 |