Skip to content

Commit c776527

Browse files
committed
Bring back custom attr refs
1 parent ab8e2d3 commit c776527

5 files changed

Lines changed: 12 additions & 11 deletions

File tree

ModFramework.Modules.CSharp/ModFramework.Modules.CSharp.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5-
<PackageVersion>1.1.10</PackageVersion>
6-
<Version>1.1.10</Version>
5+
<PackageVersion>1.1.11</PackageVersion>
6+
<Version>1.1.11</Version>
77
<PackageId>ModFramework.Modules.CSharp</PackageId>
88
<Authors>DeathCradle</Authors>
99
<PackOnBuild>true</PackOnBuild>

ModFramework.Modules.ClearScript/ModFramework.Modules.ClearScript.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5-
<PackageVersion>1.1.10</PackageVersion>
6-
<Version>1.1.10</Version>
5+
<PackageVersion>1.1.11</PackageVersion>
6+
<Version>1.1.11</Version>
77
<Authors>DeathCradle</Authors>
88
<Copyright>Copyright 2016-2024</Copyright>
99
<PackageId>ModFramework.Modules.ClearScript</PackageId>

ModFramework.Modules.Lua/ModFramework.Modules.Lua.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5-
<PackageVersion>1.1.10</PackageVersion>
6-
<Version>1.1.10</Version>
5+
<PackageVersion>1.1.11</PackageVersion>
6+
<Version>1.1.11</Version>
77
<PackageId>ModFramework.Modules.Lua</PackageId>
88
<Authors>DeathCradle</Authors>
99
<PackOnBuild>true</PackOnBuild>

ModFramework/ModFramework.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5-
<PackageVersion>1.1.10</PackageVersion>
6-
<Version>1.1.10</Version>
5+
<PackageVersion>1.1.11</PackageVersion>
6+
<Version>1.1.11</Version>
77
<PackageId>ModFramework</PackageId>
88
<Authors>DeathCradle</Authors>
99
<PackOnBuild>true</PackOnBuild>

ModFramework/Modder.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,10 @@ public override void PatchRefsInMethod(MethodDefinition method)
211211

212212
RunTasks(t => t.Relink(method));
213213

214-
//// pending: https://github.com/MonoMod/MonoMod/pull/92
215-
//for (int i = 0; i < method.MethodReturnType.CustomAttributes.Count; i++)
216-
// PatchRefsInCustomAttribute(method.MethodReturnType.CustomAttributes[i] = method.MethodReturnType.CustomAttributes[i].Relink(Relinker, method));
214+
// pending: https://github.com/MonoMod/MonoMod/pull/92
215+
// still required, PR was rejected due to the branch not being cared for anymore.
216+
for (int i = 0; i < method.MethodReturnType.CustomAttributes.Count; i++)
217+
PatchRefsInCustomAttribute(method.MethodReturnType.CustomAttributes[i] = method.MethodReturnType.CustomAttributes[i].Relink(Relinker, method));
217218
}
218219

219220
public override void AutoPatch()

0 commit comments

Comments
 (0)