fix excluded assemblies missing in crossgen
All checks were successful
Build / Compute Version (push) Successful in 1m42s
Build / Build Nuget package (CringeBootstrap.Abstractions) (push) Successful in 4m4s
Build / Build Nuget package (NuGet) (push) Successful in 4m2s
Build / Build Nuget package (SharedCringe) (push) Successful in 4m6s
Build / Build Nuget package (CringePlugins) (push) Successful in 4m28s
Build / Build Launcher (push) Successful in 5m55s

This commit is contained in:
zznty
2025-08-02 04:22:52 +07:00
parent d2cc3cae49
commit d6e822bb73

View File

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