Now only uses "mysticbbs" environment variable if mystic.dat is not in same directory
This commit is contained in:
parent
92614e0c75
commit
a3c2163a33
|
@ -195,15 +195,19 @@ Begin
|
|||
Halt (1);
|
||||
End;
|
||||
|
||||
BasePath := GetENV('mysticbbs');
|
||||
|
||||
If BasePath <> '' Then BasePath := DirSlash(BasePath);
|
||||
|
||||
Action := strUpper(ParamStr(1));
|
||||
InFN := ParamStr(2);
|
||||
OutFN := ParamStr(3);
|
||||
FileMode := 2;
|
||||
|
||||
Assign (ConfigFile, 'mystic.dat');
|
||||
Reset (ConfigFile);
|
||||
|
||||
If IoResult <> 0 Then Begin
|
||||
BasePath := GetENV('mysticbbs');
|
||||
|
||||
If BasePath <> '' Then BasePath := DirSlash(BasePath);
|
||||
|
||||
Assign (ConfigFile, BasePath + 'mystic.dat');
|
||||
Reset (ConfigFile);
|
||||
|
||||
|
@ -214,6 +218,7 @@ Begin
|
|||
WriteLn ('path defined by the MYSTICBBS environment variable.');
|
||||
Halt (1);
|
||||
End;
|
||||
End;
|
||||
|
||||
Read (ConfigFile, bbsConfig);
|
||||
Close (ConfigFile);
|
||||
|
|
Loading…
Reference in New Issue