Skip to content

Commit

Permalink
Add DLC flag to config
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowberryHN committed Aug 30, 2021
1 parent b8dcc02 commit 0f4e014
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MeidoDataParser/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public class ProgramSettings
public bool outputMini;
public bool outputFull;
public string searchDir;
public bool noDLC;
}

class Program
Expand Down Expand Up @@ -64,6 +65,7 @@ static void ReadData(string filter)
foreach (string file in Directory.EnumerateFiles(settings.searchDir, "*.lst", SearchOption.AllDirectories))
{
if (!string.IsNullOrEmpty(filter) && !file.Contains(filter)) continue;
if (settings.noDLC && file.Contains(Path.Combine(settings.searchDir, "DLC"))) continue;

var pack = new UpdatePack { name = Path.GetFileName(Path.GetDirectoryName(file)) };

Expand Down

0 comments on commit 0f4e014

Please sign in to comment.