Skip to content

Commit

Permalink
Skip subdirs that are known not to be culture names
Browse files Browse the repository at this point in the history
Makes for cleaner debug output
  • Loading branch information
richardbuckle committed Jul 25, 2018
1 parent 93beb15 commit 8d92d29
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion EDDI/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,14 @@ private List<LanguageDef> GetAvailableLangs()
DirectoryInfo[] subDirs = rootInfo.GetDirectories();
foreach (DirectoryInfo dir in subDirs)
{
string name = dir.Name;
if (name == "x86" || name == "x64")
{
continue;
}
try
{
CultureInfo cInfo = new CultureInfo(dir.Name);
CultureInfo cInfo = new CultureInfo(name);
satelliteCultures.Add(new LanguageDef(cInfo));
}
catch
Expand Down

0 comments on commit 8d92d29

Please sign in to comment.