# HG changeset patch # User unc0rr # Date 1362601511 -14400 # Node ID fb62d23c70f8c9e5b4492d93e9def4d22fa34078 # Parent afb2b467f80150caac2d5ef56391e695852c7f5c PhysFS-aware check for directory existence. Should fix issue 511. diff -r afb2b467f801 -r fb62d23c70f8 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;