bugfix for HLDM (listen server)

This commit is contained in:
Christian Hammacher 2006-04-16 00:54:16 +00:00
parent cb92e45712
commit 0a66780727
2 changed files with 7 additions and 2 deletions

Binary file not shown.

View File

@ -344,9 +344,14 @@ begin
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
if not FileExists(ePath + '\liblist.gam') then begin
MessageBox(Handle, 'You have to play this game once before installing AMX Mod X. Do this and try again.', PChar(Application.Title), MB_ICONWARNING);
// added for HLDM
if FileExists(ExtractFilePath(ePath) + 'liblist.gam') then
ePath := ExtractFilePath(ePath)
else begin
MessageBox(Handle, 'You have to play this game once before installing AMX Mod X. Do that and try again.', PChar(Application.Title), MB_ICONWARNING);
exit;
end;
end;
jspInstallProgress.Show;
if (Pos('\cstrike', ePath) <> Pos('\counter-strike', ePath)) or (Pos('\condition zero', ePath) <> Pos('czero', ePath)) then begin // Counter-Strike & Condition Zero