Skip to content

Commit

Permalink
[SADXModManager] Removed check for "system" directory
Browse files Browse the repository at this point in the history
  • Loading branch information
DankRank committed Oct 7, 2016
1 parent 1012d03 commit aaab048
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions SADXModManager/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,18 +161,15 @@ private static IEnumerable<string> GetModFiles(DirectoryInfo[] dirs)
{
foreach(DirectoryInfo item in dirs)
{
if (!item.Name.Equals("system", StringComparison.OrdinalIgnoreCase))
string modini = Path.Combine(item.FullName, "mod.ini");
if (File.Exists(modini))
{
string modini = Path.Combine(item.FullName, "mod.ini");
if (File.Exists(modini))
{
yield return modini;
}
else
{
foreach (string filename in GetModFiles(item.GetDirectories()))
yield return filename;
}
yield return modini;
}
else
{
foreach (string filename in GetModFiles(item.GetDirectories()))
yield return filename;
}
}
}
Expand Down

0 comments on commit aaab048

Please sign in to comment.