Files
se-launcher/CringeLauncher/Patches/ModRewriterPatch.cs
pas2704 b12f1cc2f1
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
Retry source requests
Handle missing sources
Minor Optimizations
Move thread pool improvement to debug while we fix it
2025-06-01 11:11:50 -04:00

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;
}
}