mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
has method body
This commit is contained in:
parent
4de39c7284
commit
97e17d8f85
@ -11,7 +11,7 @@
|
||||
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
|
||||
<NoWarn>1701;1702;1591</NoWarn>
|
||||
|
||||
<!-- <DefineConstants>ENABLE_PROFILER</DefineConstants>-->
|
||||
<DefineConstants>ENABLE_PROFILER</DefineConstants>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
|
||||
<DebugType>none</DebugType>
|
||||
|
||||
@ -31,6 +31,7 @@ public static class ProfilerPatch
|
||||
foreach (var method in type.GetMethods(BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.DeclaredOnly))
|
||||
{
|
||||
if (method.ContainsGenericParameters) continue;
|
||||
if (!method.HasMethodBody()) continue;
|
||||
|
||||
// Main.Instance.ModHelper.Console.WriteLine($"[profiler] profiling {method.FriendlyName()}");
|
||||
yield return method;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user