summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/clifront.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/clifront.c')
-rw-r--r--src/emu/clifront.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/emu/clifront.c b/src/emu/clifront.c
index 7ecd5032e47..305244330d2 100644
--- a/src/emu/clifront.c
+++ b/src/emu/clifront.c
@@ -184,7 +184,7 @@ int cli_execute(cli_options &options, osd_interface &osd, int argc, char **argv)
throw emu_fatalerror(MAMERR_INVALID_CONFIG, "%s", option_errors.trimspace().cstr());
if (option_errors)
printf("Error in command line:\n%s\n", option_errors.trimspace().cstr());
-
+
// determine the base name of the EXE
astring exename;
core_filename_extract_base(&exename, argv[0], TRUE);
@@ -192,7 +192,7 @@ int cli_execute(cli_options &options, osd_interface &osd, int argc, char **argv)
// if we have a command, execute that
if (strlen(options.command()) != 0)
execute_commands(options, exename);
-
+
// otherwise, check for a valid system
else
{
@@ -200,19 +200,19 @@ int cli_execute(cli_options &options, osd_interface &osd, int argc, char **argv)
const game_driver *system = options.system();
if (system == NULL && strlen(options.system_name()) > 0)
throw emu_fatalerror(MAMERR_NO_SUCH_GAME, "Unknown system '%s'", options.system_name());
-
+
// otherwise just run the game
result = mame_execute(options, osd);
}
}
-
+
// handle exceptions of various types
catch (emu_fatalerror &fatal)
{
astring string(fatal.string());
fprintf(stderr, "%s\n", string.trimspace().cstr());
result = (fatal.exitcode() != 0) ? fatal.exitcode() : MAMERR_FATALERROR;
-
+
// if a game was specified, wasn't a wildcard, and our error indicates this was the
// reason for failure, offer some suggestions
if (result == MAMERR_NO_SUCH_GAME && strlen(options.system_name()) > 0 && strchr(options.system_name(), '*') == NULL && options.system() == NULL)
@@ -228,7 +228,7 @@ int cli_execute(cli_options &options, osd_interface &osd, int argc, char **argv)
fprintf(stderr, "Out of memory!\n");
result = MAMERR_FATALERROR;
}
-
+
// handle any other exceptions
catch (...)
{
@@ -378,7 +378,7 @@ void cli_info_listxml(emu_options &options, const char *gamename)
/*-------------------------------------------------
- cli_info_listfull - output the name and
+ cli_info_listfull - output the name and
description of one or more games
-------------------------------------------------*/