From d6e822bb73d945794c66a148035199e664bfa6c6 Mon Sep 17 00:00:00 2001 From: zznty <94796179+zznty@users.noreply.github.com> Date: Sat, 2 Aug 2025 04:22:52 +0700 Subject: [PATCH] fix excluded assemblies missing in crossgen --- CringeBootstrap/CrossGen/CrossGenService.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CringeBootstrap/CrossGen/CrossGenService.cs b/CringeBootstrap/CrossGen/CrossGenService.cs index 5609487..9839500 100644 --- a/CringeBootstrap/CrossGen/CrossGenService.cs +++ b/CringeBootstrap/CrossGen/CrossGenService.cs @@ -125,6 +125,14 @@ internal class CrossGenService(string gameDirectoryPath, string cachePath) return gameDirectoryPath; } + foreach (var excludedAssembly in _excludedAssemblies) + { + var gameAssemblyPath = Path.Join(gameDirectoryPath, excludedAssembly); + var cacheAssemblyPath = Path.Join(cacheDirectory, excludedAssembly); + if (File.Exists(gameAssemblyPath)) + File.Copy(gameAssemblyPath, cacheAssemblyPath, true); + } + Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("Crossgen finished"); Console.ResetColor();