1
0
Fork 0

*** empty log message ***

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@100
This commit is contained in:
Sjoerd van der Berg 2002-07-30 12:38:18 +00:00
parent e0aba101af
commit aa5c7f77c9

View file

@ -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();
};