Skip to content

Commit

Permalink
Use order-by to enforce order of operation for files
Browse files Browse the repository at this point in the history
  • Loading branch information
drasticactions committed Jan 17, 2025
1 parent 15df774 commit cb86dce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/FFSourceGen/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private List<string> GetHighestLevelDirectories(string path)

private async Task GenerateClasses(string lexiconPath)
{
var files = Directory.EnumerateFiles(lexiconPath, "*.json", SearchOption.AllDirectories).ToList();
var files = Directory.EnumerateFiles(lexiconPath, "*.json", SearchOption.AllDirectories).OrderBy(n => n).ToList();
Console.WriteLine($"Found {files.Count()} files.");

var defs = files.Where(n => n.Contains("defs.json")).ToList();
Expand Down

0 comments on commit cb86dce

Please sign in to comment.