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();