From 09b7167fcf448351a8c665e1d9c9c0549147706a Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Sun, 30 Mar 2003 20:59:42 +0000 Subject: [PATCH] Removal of intro command from shell Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@844 --- src/shell/shell.cpp | 27 +-------------------------- src/shell/shell_cmds.cpp | 7 ------- src/shell/shell_inc.h | 1 - 3 files changed, 1 insertion(+), 34 deletions(-) diff --git a/src/shell/shell.cpp b/src/shell/shell.cpp index 570c122f..455f528d 100644 --- a/src/shell/shell.cpp +++ b/src/shell/shell.cpp @@ -67,7 +67,7 @@ Bit32u DOS_Shell::GetRedirection(char *s, char **ifn, char **ofn) { return 1; -} +} @@ -235,31 +235,6 @@ void SHELL_Init() { MSG_Add("SHELL_CMD_DELETE_HELP","Removes files.\n"); MSG_Add("SHELL_CMD_COPY_HELP","Copy files.\n"); MSG_Add("SHELL_CMD_INTRO_HELP","Gives an introduction into dosbox\n"); - MSG_Add("SHELL_CMD_INTRO", -"Welcome to DOSBox, a x86 emulator with sound and graphics\n" -"DOSBox creates a shell for you which looks like old plain DOS\n" -"\n" -"Here are some commands to get you started:\n" -"Before you can use the files located on your own filesystem,\n" -"You have to mount the directory containing the files.\n" -"For MS Windows users:\n" -"mount c c:\\dosprog will create a C drive in dosbox with c:\\dosprog as contents.\n" -"\n" -"For linux users:\n" -"mount c /home/user/dosprog will do the same.\n" -"\n" -"Mac OS and others:\n" -"\n" -"I have no idea\n" -"\n" -"When the mount has succesfully completed you can type c: to go to your freshly\n" -"mounted C-drive. Typing dir there will show its contents. cd will allow you to\n" -"enter a directory (recognised by the [] in a directory listing).\n" -"You can run programs/files which end at .exe .bat and .com .\n" -"\n" -"DOSBox will stop/exit without a warning if an error occured!\n" - ); - /* Regular startup */ call_shellstop=CALLBACK_Allocate(); /* Setup the startup CS:IP to kill the last running machine when exitted */ diff --git a/src/shell/shell_cmds.cpp b/src/shell/shell_cmds.cpp index 248f4c38..7d3fe73d 100644 --- a/src/shell/shell_cmds.cpp +++ b/src/shell/shell_cmds.cpp @@ -43,7 +43,6 @@ static SHELL_Cmd cmd_list[]={ "RENAME", 0, &DOS_Shell::CMD_RENAME, "SHELL_CMD_RENAME_HELP", "REN", 1, &DOS_Shell::CMD_RENAME, "SHELL_CMD_RENAME_HELP", "PAUSE", 0, &DOS_Shell::CMD_PAUSE, "SHELL_CMD_PAUSE_HELP", - "INTRO", 0, &DOS_Shell::CMD_INTRO, "SHELL_CMD_INTRO_HELP", /* "CHDIR", 0, &DOS_Shell::CMD_CHDIR, "Change Directory", "MKDIR", 0, &DOS_Shell::CMD_MKDIR, "Make Directory", @@ -521,9 +520,3 @@ void DOS_Shell::CMD_PAUSE(char * args){ DOS_ReadFile (STDIN,&c,&n); } -void DOS_Shell::CMD_INTRO(char* args) -{ - WriteOut(MSG_Get("SHELL_CMD_INTRO")); -// Bit8u c;Bit16u n=1; -// DOS_ReadFile (STDIN,&c,&n); -} diff --git a/src/shell/shell_inc.h b/src/shell/shell_inc.h index 703d5b04..21947803 100644 --- a/src/shell/shell_inc.h +++ b/src/shell/shell_inc.h @@ -80,7 +80,6 @@ public: void CMD_RENAME(char * args); void SyntaxError(void); void CMD_PAUSE(char * args); - void CMD_INTRO(char * args); /* The shell's variables */ Bit16u input_handle; BatchFile * bf;