From 0c06cdca3682ab8c70f70bc7fe2eeaca45d4a721 Mon Sep 17 00:00:00 2001 From: Christian Hammacher Date: Sat, 22 Jul 2006 01:06:32 +0000 Subject: [PATCH] fixed case-sensitivity bug and another typo that prevented the installer from asking for the ESF add-on when installing amxx on the listen server --- installer/installer/UnitfrmMain.pas | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/installer/installer/UnitfrmMain.pas b/installer/installer/UnitfrmMain.pas index 179c44c9..ec350a17 100755 --- a/installer/installer/UnitfrmMain.pas +++ b/installer/installer/UnitfrmMain.pas @@ -365,6 +365,8 @@ begin if Pos(SteamPath, ePath) = 0 then MessageBox(Handle, 'An error occured. Please report this bug to the AMX Mod X team and post a new thread on the forums of www.amxmodx.org.', PChar(Application.Title), MB_ICONSTOP) else begin + ePath := LowerCase(ePath); // fixes case-sensivity bug + if not FileExists(ePath + '\liblist.gam') then begin // added for HLDM if FileExists(ExtractFilePath(ePath) + 'liblist.gam') then @@ -396,10 +398,11 @@ begin if MessageBox(Handle, 'Install Natural Selection addon?', PChar(Application.Title), MB_ICONQUESTION + MB_YESNO) = mrYes then ChosenMod := modNS; end - else if Pos('half-life\ns', ePath) <> 0 then begin // Natural Selection + else if Pos('half-life\esf', ePath) <> 0 then begin // Natural Selection if MessageBox(Handle, 'Install Earth''s Special Forces addon?', PChar(Application.Title), MB_ICONQUESTION + MB_YESNO) = mrYes then ChosenMod := modESF; end; + ePath := ePath + '\'; InstallListen(ePath, ChosenMod); end;