1
0
Fork 0

Documentation update added command intro

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@785
This commit is contained in:
Peter Veenstra 2003-03-23 19:54:00 +00:00
parent 89051332ef
commit fd1e05cb25
7 changed files with 44 additions and 7 deletions

View file

@ -118,6 +118,7 @@ bool MIDI_Available(void) {
void MIDI_Init(Section * sect) {
MSG_Add("MIDI_CONFIGFILE_HELP","Nothing to setup yet!\n");
midi.available=MIDI_StartUp();
}

View file

@ -366,6 +366,7 @@ static void DecreaseFrameSkip(void) {
}
void RENDER_Init(Section * sec) {
MSG_Add("RENDER_CONFIGFILE_HELP","Available renderers:scale2x, none\n");
Section_prop * section=static_cast<Section_prop *>(sec);
render.pal.first=256;

View file

@ -99,7 +99,7 @@ static void DISNEY_CallBack(Bit8u * stream,Bit32u len) {
void DISNEY_Init(Section* sec) {
MSG_Add("DISNEY_CONFIGFILE_HELP","Nothing to setup yet!\n");
Section_prop * section=static_cast<Section_prop *>(sec);
if(!section->Get_bool("enabled")) return;

View file

@ -14,7 +14,7 @@
void GUS_Init(Section* sec) {
MSG_Add("GUS_CONFIGFILE_HELP","Nothing to setup yet!\n");

View file

@ -212,6 +212,7 @@ void SHELL_Init() {
MSG_Add("SHELL_STARTUP","DOSBox Shell v" VERSION "\n"
"DOSBox does not run protected mode games!\n"
"For supported shell commands type: HELP\n"
"For a short introduction type: INTRO\n\n"
"For more information read the README file in DOSBox directory.\n"
"\nHAVE FUN!\nThe DOSBox Team\n\n"
);
@ -233,7 +234,32 @@ void SHELL_Init() {
MSG_Add("SHELL_CMD_RENAME_HELP","Renames files.\n");
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 */

View file

@ -43,6 +43,7 @@ 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",
@ -518,4 +519,11 @@ void DOS_Shell::CMD_PAUSE(char * args){
WriteOut(MSG_Get("SHELL_CMD_PAUSE"));
Bit8u c;Bit16u n=1;
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);
}

View file

@ -66,7 +66,7 @@ public:
void CMD_CLS(char * args);
void CMD_COPY(char * args);
void CMD_DIR(char * args);
void CMD_DELETE(char * args);
void CMD_DELETE(char * args);
void CMD_ECHO(char * args);
void CMD_EXIT(char * args);
void CMD_MKDIR(char * args);
@ -77,9 +77,10 @@ public:
void CMD_GOTO(char * args);
void CMD_TYPE(char * args);
void CMD_REM(char * args);
void CMD_RENAME(char * args);
void CMD_RENAME(char * args);
void SyntaxError(void);
void CMD_PAUSE(char * args);
void CMD_PAUSE(char * args);
void CMD_INTRO(char * args);
/* The shell's variables */
Bit16u input_handle;
BatchFile * bf;