Skip to content

Commit

Permalink
Protect generated method names from invalid characters (fixes BepInEx…
Browse files Browse the repository at this point in the history
  • Loading branch information
laymain committed Jun 12, 2024
1 parent 45e22c2 commit 8fb9155
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Il2CppInterop.Generator/Contexts/MethodRewriteContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,9 @@ private string UnmangleMethodNameWithSignature()
unmangleMethodNameWithSignature = newName;
}

if (unmangleMethodNameWithSignature.IsInvalidInSource())
unmangleMethodNameWithSignature = unmangleMethodNameWithSignature.FilterInvalidInSourceChars();

return unmangleMethodNameWithSignature;
}

Expand Down

0 comments on commit 8fb9155

Please sign in to comment.