Permalink
Browse files

DOS Shell: Limit full shell startup message to first run only. Runnin…

…g COMMAND.COM should only show a one-line message (emendelson)
  • Loading branch information...
joncampbell123 committed Feb 12, 2018
1 parent f5c33b8 commit 12c1059466e10b49b2ccc8f31e0656eda2f87e6b
Showing with 13 additions and 7 deletions.
  1. +13 −7 src/shell/shell.cpp
@@ -306,15 +306,21 @@ void DOS_Shell::Run(void) {
temp.RunInternal(); // exits when no bf is found.
return;
}
/* Start a normal shell and check for a first command init */
WriteOut(MSG_Get("SHELL_STARTUP_BEGIN"),VERSION,UPDATED_STR);
if (this == first_shell) {
/* Start a normal shell and check for a first command init */
WriteOut(MSG_Get("SHELL_STARTUP_BEGIN"),VERSION,UPDATED_STR);
#if C_DEBUG
WriteOut(MSG_Get("SHELL_STARTUP_DEBUG"));
WriteOut(MSG_Get("SHELL_STARTUP_DEBUG"));
#endif
if (machine == MCH_CGA || machine == MCH_AMSTRAD) WriteOut(MSG_Get("SHELL_STARTUP_CGA"));
if (machine == MCH_PC98) WriteOut(MSG_Get("SHELL_STARTUP_PC98"));
if (machine == MCH_HERC) WriteOut(MSG_Get("SHELL_STARTUP_HERC"));
WriteOut(MSG_Get("SHELL_STARTUP_END"));
if (machine == MCH_CGA || machine == MCH_AMSTRAD) WriteOut(MSG_Get("SHELL_STARTUP_CGA"));
if (machine == MCH_PC98) WriteOut(MSG_Get("SHELL_STARTUP_PC98"));
if (machine == MCH_HERC) WriteOut(MSG_Get("SHELL_STARTUP_HERC"));
WriteOut(MSG_Get("SHELL_STARTUP_END"));
}
else {
WriteOut("DOSBox command shell %s %s\n\n",VERSION,UPDATED_STR);
}
if (cmd->FindString("/INIT",line,true)) {
strcpy(input_line,line.c_str());

0 comments on commit 12c1059

Please sign in to comment.