Skip to content

Commit

Permalink
Add missing uses of MakeValidInSource
Browse files Browse the repository at this point in the history
  • Loading branch information
ds5678 committed Sep 20, 2024
1 parent edd8865 commit 87ad1e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Il2CppInterop.Generator/Extensions/StringEx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ public static string GetUnmangledName(this TypeSignature typeRef, TypeDefinition
else if (typeRef is GenericParameterSignature genericParameter)
{
if (genericParameter.ParameterType == GenericParameterType.Type)
builder.Append(declaringType!.GenericParameters[genericParameter.Index].Name);
builder.Append(declaringType!.GenericParameters[genericParameter.Index].Name.MakeValidInSource());
else
builder.Append(declaringMethod!.GenericParameters[genericParameter.Index].Name);
builder.Append(declaringMethod!.GenericParameters[genericParameter.Index].Name.MakeValidInSource());
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion Il2CppInterop.Generator/Passes/Pass80UnstripMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public static void DoPass(RewriteGlobalContext context)

foreach (var unityMethodGenericParameter in unityMethod.GenericParameters)
{
var newParameter = new GenericParameter(unityMethodGenericParameter.Name);
var newParameter = new GenericParameter(unityMethodGenericParameter.Name.MakeValidInSource());
newParameter.Attributes = unityMethodGenericParameter.Attributes;
foreach (var genericParameterConstraint in unityMethodGenericParameter.Constraints)
{
Expand Down

0 comments on commit 87ad1e8

Please sign in to comment.