PhysFS-aware check for directory existence. Should fix issue 511.
authorunc0rr
Thu, 07 Mar 2013 00:25:11 +0400
changeset 8678 fb62d23c70f8
parent 8677 afb2b467f801
child 8679 a8bdcf7bec20
PhysFS-aware check for directory existence. Should fix issue #511.
hedgewars/uSound.pas
--- 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;