Fix check for file existance
authorunc0rr
Sun, 02 Dec 2012 22:19:13 +0400
changeset 8191 3f03f0b6a385
parent 8189 328f429c3ecc
child 8193 10144ac42d1c
child 8198 7c6e7492333d
Fix check for file existance
hedgewars/uSound.pas
--- a/hedgewars/uSound.pas	Sun Dec 02 22:14:21 2012 +0400
+++ b/hedgewars/uSound.pas	Sun Dec 02 22:19:13 2012 +0400
@@ -386,7 +386,7 @@
         if (voicepack^.chunks[snd] = nil) and (Soundz[snd].Path = ptVoices) and (Soundz[snd].FileName <> '') then
             begin
             s:= cPathz[Soundz[snd].Path] + '/' + voicepack^.name + '/' + Soundz[snd].FileName;
-            if (not FileExists(s)) and (snd in [sndFirePunch2, sndFirePunch3, sndFirePunch4, sndFirePunch5, sndFirePunch6]) then
+            if (not pfsExists(s)) and (snd in [sndFirePunch2, sndFirePunch3, sndFirePunch4, sndFirePunch5, sndFirePunch6]) then
                 s:= cPathz[Soundz[sndFirePunch1].Path] + '/' + voicepack^.name + '/' + Soundz[snd].FileName;
             WriteToConsole(msgLoading + s + ' ');
             voicepack^.chunks[snd]:= Mix_LoadWAV_RW(rwopsOpenRead(s), 1);