PhysFS-aware check for directory existence. Should fix
issue #511.
--- 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;