From cb86dce020d2bde24f0f8087a995930c3924e0e1 Mon Sep 17 00:00:00 2001 From: Timothy Miller Date: Fri, 17 Jan 2025 17:22:34 +0900 Subject: [PATCH] Use order-by to enforce order of operation for files --- tools/FFSourceGen/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/FFSourceGen/Program.cs b/tools/FFSourceGen/Program.cs index 3f84589a..f255ffa4 100644 --- a/tools/FFSourceGen/Program.cs +++ b/tools/FFSourceGen/Program.cs @@ -110,7 +110,7 @@ private List 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();