mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-03-27 05:35:13 +00:00
Corrected RewrittenAttribute definition
This commit is contained in:
parent
f5b33b6487
commit
ec67232e88
|
@ -140,7 +140,9 @@ namespace OpenTK.Rewrite
|
|||
if (type.Name == "RewrittenAttribute")
|
||||
{
|
||||
var rewritten_constructor = type.GetConstructors().First();
|
||||
var rewritten = new CustomAttribute(rewritten_constructor, BitConverter.GetBytes(true));
|
||||
var rewritten = new CustomAttribute(rewritten_constructor);
|
||||
rewritten.ConstructorArguments.Add(new CustomAttributeArgument(
|
||||
type.Module.Import(typeof(bool)), true));
|
||||
type.Module.Assembly.CustomAttributes.Add(rewritten);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue