All checks were successful
Build / Compute Version (push) Successful in 6s
Build / Build Nuget package (SharedCringe) (push) Successful in 1m4s
Build / Build Nuget package (NuGet) (push) Successful in 1m6s
Build / Build Nuget package (CringeBootstrap.Abstractions) (push) Successful in 1m10s
Build / Build Nuget package (CringePlugins) (push) Successful in 1m18s
Build / Build Launcher (push) Successful in 1m54s
Handle missing sources Minor Optimizations Move thread pool improvement to debug while we fix it
19 lines
508 B
C#
19 lines
508 B
C#
using HarmonyLib;
|
|
using Microsoft.CodeAnalysis.CSharp;
|
|
using Microsoft.CodeAnalysis;
|
|
using CringeLauncher.SyntaxRewriters;
|
|
using VRage.Scripting.Rewriters;
|
|
|
|
namespace CringeLauncher.Patches;
|
|
|
|
[HarmonyPatch(typeof(ProtoTagRewriter), "Rewrite")]
|
|
internal static class ModRewriterPatch
|
|
{
|
|
public static bool Prefix(CSharpCompilation compilation, SyntaxTree syntaxTree, ref SyntaxTree __result)
|
|
{
|
|
__result = MissingUsingRewriter.Rewrite(compilation, syntaxTree);
|
|
|
|
return false;
|
|
}
|
|
}
|