From aa5c7f77c9a082cd43cac4ee21e4ac9fc29293bc Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Tue, 30 Jul 2002 12:38:18 +0000 Subject: [PATCH] *** empty log message *** Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@100 --- src/dosbox.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/dosbox.cpp b/src/dosbox.cpp index c8b99782..538d192f 100644 --- a/src/dosbox.cpp +++ b/src/dosbox.cpp @@ -244,6 +244,8 @@ static void InitSystems(void) { void DOSBOX_Init(int argc, char* argv[]) { /* Find the base directory */ + SHELL_AddAutoexec("SET PATH=Z:\\"); + SHELL_AddAutoexec("SET COMSPEC=Z:\\COMMAND.COM"); strcpy(dosbox_basedir,argv[0]); char * last=strrchr(dosbox_basedir,CROSS_FILESPLIT); //if windowsversion fails: if (!last){ @@ -255,7 +257,6 @@ void DOSBOX_Init(int argc, char* argv[]) { } else { *++last=0; } - /* Parse the command line with a setup function */ int argl=1; if (argc>1) { @@ -302,7 +303,5 @@ void DOSBOX_Init(int argc, char* argv[]) { void DOSBOX_StartUp(void) { - SHELL_AddAutoexec("SET PATH=Z:\\"); - SHELL_AddAutoexec("SET COMSPEC=Z:\\COMMAND.COM"); SHELL_Init(); };