hedgewars/uSound.pas
changeset 8678 fb62d23c70f8
parent 8471 7681d14b9f01
child 8833 c13ebed437cb
child 8968 10a899fd9ac5
--- a/hedgewars/uSound.pas	Wed Mar 06 13:03:11 2013 -0500
+++ b/hedgewars/uSound.pas	Thu Mar 07 00:25:11 2013 +0400
@@ -263,14 +263,14 @@
         begin
         locName:= name+'_'+cLocale;
         path:= cPathz[ptVoices] + '/' + locName;
-        if DirectoryExists(path) then
+        if pfsExists(path) then
             name:= locName
         else
             if Length(cLocale) > 3 then
                 begin
                 locName:= name+'_'+Copy(cLocale,1,2);
                 path:= cPathz[ptVoices] + '/' + locName;
-                if DirectoryExists(path) then
+                if pfsExists(path) then
                     name:= locName
                 end
         end;