summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/ModLoading/Rewriters/ArchitectureAssemblyRewriter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI/Framework/ModLoading/Rewriters/ArchitectureAssemblyRewriter.cs')
-rw-r--r--src/SMAPI/Framework/ModLoading/Rewriters/ArchitectureAssemblyRewriter.cs13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/SMAPI/Framework/ModLoading/Rewriters/ArchitectureAssemblyRewriter.cs b/src/SMAPI/Framework/ModLoading/Rewriters/ArchitectureAssemblyRewriter.cs
index 216c042a..cc830216 100644
--- a/src/SMAPI/Framework/ModLoading/Rewriters/ArchitectureAssemblyRewriter.cs
+++ b/src/SMAPI/Framework/ModLoading/Rewriters/ArchitectureAssemblyRewriter.cs
@@ -1,13 +1,9 @@
-using System;
-using HarmonyLib;
using Mono.Cecil;
-using Mono.Cecil.Cil;
using StardewModdingAPI.Framework.ModLoading.Framework;
-using StardewModdingAPI.Framework.ModLoading.RewriteFacades;
namespace StardewModdingAPI.Framework.ModLoading.Rewriters
{
- /// <summary>Rewrites Harmony 1.x assembly references to work with Harmony 2.x.</summary>
+ /// <summary>Removes the 32-bit-only from loaded assemblies.</summary>
internal class ArchitectureAssemblyRewriter : BaseInstructionHandler
{
/*********
@@ -19,14 +15,15 @@ namespace StardewModdingAPI.Framework.ModLoading.Rewriters
/// <inheritdoc />
- public override bool Handle( ModuleDefinition module )
+ public override bool Handle(ModuleDefinition module)
{
- if ( module.Attributes.HasFlag( ModuleAttributes.Required32Bit ) )
+ if (module.Attributes.HasFlag(ModuleAttributes.Required32Bit))
{
- module.Attributes = module.Attributes & ~ModuleAttributes.Required32Bit;
+ module.Attributes &= ~ModuleAttributes.Required32Bit;
this.MarkRewritten();
return true;
}
+
return false;
}