Crash caused by <PrivateImplementationDetails>
in MonoMod.MonoModRules
#78
Labels
<PrivateImplementationDetails>
in MonoMod.MonoModRules
#78
Description
MonoMod will crash if a method in
MonoMod.MonoModRules
contains<PrivateImplementationDetails>
called during patch. Mostly because of initializing an array of primitive types or having aswitch
with more than 6case
and the compiler optimizes the code to<PrivateImplementationDetails>
.MonoMod version: 21.6.21.1
Example
SharpLab link
Compile this code to
MonoMod.PrivateImplementationDetails.mm.dll
and runMonoMod.exe MonoMod.exe
, then MonoMod will crash with the following log:The text was updated successfully, but these errors were encountered: