diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-08-24 20:11:56 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-08-24 20:11:56 -0400 |
commit | 94b8262692d2452e77d57fa22046dded231cdb0a (patch) | |
tree | 7a65c992db59db0c0797799195ff1509c366ac20 /src/SMAPI/Metadata/InstructionMetadata.cs | |
parent | 046deb2d56b6d4665280cc5478d9e683ec1d777d (diff) | |
download | SMAPI-94b8262692d2452e77d57fa22046dded231cdb0a.tar.gz SMAPI-94b8262692d2452e77d57fa22046dded231cdb0a.tar.bz2 SMAPI-94b8262692d2452e77d57fa22046dded231cdb0a.zip |
add heuristic field-to-property rewriter
Diffstat (limited to 'src/SMAPI/Metadata/InstructionMetadata.cs')
-rw-r--r-- | src/SMAPI/Metadata/InstructionMetadata.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/SMAPI/Metadata/InstructionMetadata.cs b/src/SMAPI/Metadata/InstructionMetadata.cs index 79d7a7a8..fca809f8 100644 --- a/src/SMAPI/Metadata/InstructionMetadata.cs +++ b/src/SMAPI/Metadata/InstructionMetadata.cs @@ -31,6 +31,9 @@ namespace StardewModdingAPI.Metadata /**** ** rewrite CIL to fix incompatible code ****/ + // generic rewrites + yield return new FieldToPropertyRewriter(this.ValidateReferencesToAssemblies); + // rewrite for crossplatform compatibility if (platformChanged) yield return new MethodParentRewriter(typeof(SpriteBatch), typeof(SpriteBatchFacade)); |