Case insensitive file_id.diz importing
This commit is contained in:
parent
afdbb10771
commit
8c1c5eaa16
|
@ -429,12 +429,15 @@ Function TFileBase.ImportDIZ (FN: String) : Boolean;
|
|||
|
||||
Var
|
||||
tFile : Text;
|
||||
DizName : String;
|
||||
Begin
|
||||
Result := False;
|
||||
|
||||
ExecuteArchive (FBase.Path + FN, '', 'file_id.diz', 2);
|
||||
|
||||
Assign (tFile, Session.TempPath + 'file_id.diz');
|
||||
DizName := FileFind(Session.TempPath + 'file_id.diz');
|
||||
|
||||
Assign (tFile, DizName);
|
||||
{$I-} Reset (tFile); {$I+}
|
||||
|
||||
If IoResult = 0 Then Begin
|
||||
|
@ -454,7 +457,7 @@ Begin
|
|||
|
||||
Close (tFile);
|
||||
|
||||
FileErase(Session.TempPath + 'file_id.diz');
|
||||
FileErase(DizName);
|
||||
|
||||
While (Session.Msgs.MsgText[1] = '') and (FDir.DescLines > 0) Do
|
||||
RemoveLine(1);
|
||||
|
|
|
@ -3555,7 +3555,7 @@ Begin
|
|||
|
||||
MsgAdded := 0;
|
||||
|
||||
If Not OpenCreateBase(MsgBase, MBase) THen Exit;
|
||||
If Not OpenCreateBase(MsgBase, MBase) Then Exit;
|
||||
|
||||
Session.io.OutFull (Session.GetPrompt(231));
|
||||
|
||||
|
@ -3966,7 +3966,7 @@ Begin
|
|||
|
||||
Close (DataFile);
|
||||
|
||||
Assign (ExtFile, Session.TempPath + 'todoor.ext');
|
||||
Assign (ExtFile, FileFind(Session.TempPath + 'todoor.ext'));
|
||||
{$I-} Reset (ExtFile); {$I+}
|
||||
|
||||
If IoResult = 0 Then Begin
|
||||
|
|
|
@ -20,6 +20,7 @@ Var
|
|||
ListFile : File of RecFileList;
|
||||
DescFile : File;
|
||||
DizFile : Text;
|
||||
DizName : String;
|
||||
Base : RecFileBase;
|
||||
List : RecFileList;
|
||||
DirInfo : SearchRec;
|
||||
|
@ -104,7 +105,9 @@ Begin
|
|||
|
||||
ExecuteArchive (Base.Path + List.FileName, '', 'file_id.diz', 2);
|
||||
|
||||
Assign (DizFile, TempPath + 'file_id.diz');
|
||||
DizName := FileFind(TempPath + 'file_id.diz');
|
||||
|
||||
Assign (DizFile, DizName);
|
||||
{$I-} Reset (DizFile); {$I+}
|
||||
|
||||
If IoResult = 0 Then Begin
|
||||
|
@ -133,7 +136,7 @@ Begin
|
|||
Desc[1] := INI.ReadString(Header_UPLOAD, 'no_description', 'No Description');
|
||||
End;
|
||||
|
||||
FileErase (TempPath + 'file_id.diz');
|
||||
FileErase (DizName);
|
||||
End Else Begin
|
||||
List.DescLines := 1;
|
||||
Desc[1] := INI.ReadString(Header_UPLOAD, 'no_description', 'No Description');
|
||||
|
|
Loading…
Reference in New Issue