FFullResourceName := '';
FResourceSelected := False;
- if FindFirst(WadsDir + DirectorySeparator + '*.*', faAnyFile, SR) = 0 then
+ if FindFirst(WadsDir + DirectorySeparator + '*.*', faReadOnly, SR) = 0 then
repeat
cbWADList.Items.Add(SR.Name);
until FindNext(SR) <> 0;
list := TStringList.Create;
list.Duplicates := dupIgnore;
list.Add(InSourceLanguage);
- if FindFirst(LangDir + DirectorySeparator + langfilename + '.*.lng', faAnyFile, info) = 0 then
+ if FindFirst(LangDir + DirectorySeparator + langfilename + '.*.lng', faReadOnly, info) = 0 then
begin
repeat
list.Add(Copy(ExtractFileNameWithoutExt(info.Name), Length(langfilename) + 2));