fixed worst bug ever
This commit is contained in:
parent
1370305fb0
commit
f51620c2d7
Binary file not shown.
|
@ -96,7 +96,11 @@ var eList: TStringList;
|
|||
i: integer;
|
||||
begin
|
||||
eList := TStringList.Create;
|
||||
try
|
||||
frmMain.IdFTP.List(eList);
|
||||
except
|
||||
// nothing, not an exception?!
|
||||
end;
|
||||
frmMain.IdFTP.DirectoryListing.LoadList(eList);
|
||||
eList.Clear;
|
||||
for i := 0 to frmMain.IdFTP.DirectoryListing.Count -1 do begin
|
||||
|
@ -113,7 +117,11 @@ var eList: TStringList;
|
|||
i, eStart: integer;
|
||||
begin
|
||||
eList := TStringList.Create;
|
||||
try
|
||||
frmMain.IdFTP.List(eList, '', True);
|
||||
except
|
||||
// nothing
|
||||
end;
|
||||
eStart := 0;
|
||||
|
||||
|
||||
|
|
|
@ -210,7 +210,13 @@ begin
|
|||
CurNode := CurNode.Parent;
|
||||
until (not Assigned(CurNode));
|
||||
IdFTP.ChangeDir(ePath);
|
||||
|
||||
try
|
||||
IdFTP.List(eStr, '', False);
|
||||
except
|
||||
// worst "exception" ever. bad indy!
|
||||
end;
|
||||
|
||||
if eStr.IndexOf('liblist.gam') = -1 then begin
|
||||
MessageBox(Handle, 'Invalid directory. Please select your mod directory and try again.', PChar(Application.Title), MB_ICONWARNING);
|
||||
eStr.Free;
|
||||
|
|
Loading…
Reference in New Issue
Block a user