mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-13 15:28:04 +03:00
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
This commit is contained in:
parent
ce59ee0362
commit
0c06cdca36
@ -365,6 +365,8 @@ begin
|
|||||||
if Pos(SteamPath, ePath) = 0 then
|
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)
|
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
|
else begin
|
||||||
|
ePath := LowerCase(ePath); // fixes case-sensivity bug
|
||||||
|
|
||||||
if not FileExists(ePath + '\liblist.gam') then begin
|
if not FileExists(ePath + '\liblist.gam') then begin
|
||||||
// added for HLDM
|
// added for HLDM
|
||||||
if FileExists(ExtractFilePath(ePath) + 'liblist.gam') then
|
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
|
if MessageBox(Handle, 'Install Natural Selection addon?', PChar(Application.Title), MB_ICONQUESTION + MB_YESNO) = mrYes then
|
||||||
ChosenMod := modNS;
|
ChosenMod := modNS;
|
||||||
end
|
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
|
if MessageBox(Handle, 'Install Earth''s Special Forces addon?', PChar(Application.Title), MB_ICONQUESTION + MB_YESNO) = mrYes then
|
||||||
ChosenMod := modESF;
|
ChosenMod := modESF;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
ePath := ePath + '\';
|
ePath := ePath + '\';
|
||||||
InstallListen(ePath, ChosenMod);
|
InstallListen(ePath, ChosenMod);
|
||||||
end;
|
end;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user