diff options
| author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-06-20 18:01:48 -0400 |
|---|---|---|
| committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-06-20 18:01:48 -0400 |
| commit | dab1ef6acc243726247cee57877c3b3100106522 (patch) | |
| tree | 627610696a998621327fb019586f956b9360bb95 /src/SMAPI/Metadata | |
| parent | e0ef8a20a5e7ccf1de32ff1a06f1aa62e37eb1db (diff) | |
| download | SMAPI-dab1ef6acc243726247cee57877c3b3100106522.tar.gz SMAPI-dab1ef6acc243726247cee57877c3b3100106522.tar.bz2 SMAPI-dab1ef6acc243726247cee57877c3b3100106522.zip | |
add flag to disable deprecated code
Diffstat (limited to 'src/SMAPI/Metadata')
| -rw-r--r-- | src/SMAPI/Metadata/InstructionMetadata.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/SMAPI/Metadata/InstructionMetadata.cs b/src/SMAPI/Metadata/InstructionMetadata.cs index dce0c6b1..efa91d20 100644 --- a/src/SMAPI/Metadata/InstructionMetadata.cs +++ b/src/SMAPI/Metadata/InstructionMetadata.cs @@ -54,8 +54,10 @@ namespace StardewModdingAPI.Metadata // detect Harmony & rewrite for SMAPI 3.12 (Harmony 1.x => 2.0 update) yield return new HarmonyRewriter(); +#if SMAPI_DEPRECATED // detect issues for SMAPI 4.0.0 yield return new LegacyAssemblyFinder(); +#endif } else yield return new HarmonyRewriter(shouldRewrite: false); |
