Skip to content
Snippets Groups Projects
Commit 94fbeca2 authored by rswindell's avatar rswindell
Browse files

Deuce's mod to use SBBSEXEC environment variable for help file location.

If not set and path not in argv[0], uses cfg.ctrl_dir + "../exec".
parent 6357a42e
No related branches found
No related tags found
No related merge requests found
......@@ -187,14 +187,18 @@ for(i=0;i<14;i++)
if((mopt[i]=(char *)MALLOC(64))==NULL)
allocfail(64);
sprintf(str,"%.*s",sizeof(str)-1,argv[0]);
p=strrchr(str,'/');
if(p==NULL)
p=strrchr(str,'\\');
if(p!=NULL)
*p=0;
else
strcpy(str,"../exec");
if((p=getenv("SBBSEXEC"))!=NULL)
SAFECOPY(str,p);
else {
SAFECOPY(str,argv[0]);
p=strrchr(str,'/');
if(p==NULL)
p=strrchr(str,'\\');
if(p!=NULL)
*p=0;
else
sprintf(str,"%s../exec",cfg.ctrl_dir);
}
sprintf(uifc.helpdatfile,"%s/scfghelp.dat",str);
sprintf(uifc.helpixbfile,"%s/scfghelp.ixb",str);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment