diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-09-20 00:23:45 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-09-20 00:23:45 -0400 |
commit | 81c42ac77376746ac464a1b1708d08fcc5a55a16 (patch) | |
tree | 2357d1956a46e57d6bdc7f2ade1eb5cc05b4e13b /src/StardewModdingAPI/Metadata | |
parent | 51269929587042bfd2c0ade67a1b3994c1e1285b (diff) | |
download | SMAPI-81c42ac77376746ac464a1b1708d08fcc5a55a16.tar.gz SMAPI-81c42ac77376746ac464a1b1708d08fcc5a55a16.tar.bz2 SMAPI-81c42ac77376746ac464a1b1708d08fcc5a55a16.zip |
warn for mods which change the serialiser (#347)
Diffstat (limited to 'src/StardewModdingAPI/Metadata')
-rw-r--r-- | src/StardewModdingAPI/Metadata/InstructionMetadata.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/StardewModdingAPI/Metadata/InstructionMetadata.cs b/src/StardewModdingAPI/Metadata/InstructionMetadata.cs index c53755ae..79fabbd2 100644 --- a/src/StardewModdingAPI/Metadata/InstructionMetadata.cs +++ b/src/StardewModdingAPI/Metadata/InstructionMetadata.cs @@ -73,6 +73,9 @@ namespace StardewModdingAPI.Metadata ** detect code which may impact game stability ****/ new TypeFinder("Harmony.HarmonyInstance", InstructionHandleResult.DetectedGamePatch), + new FieldFinder(typeof(SaveGame).FullName, nameof(SaveGame.serializer), InstructionHandleResult.DetectedSaveSerialiser), + new FieldFinder(typeof(SaveGame).FullName, nameof(SaveGame.farmerSerializer), InstructionHandleResult.DetectedSaveSerialiser), + new FieldFinder(typeof(SaveGame).FullName, nameof(SaveGame.locationSerializer), InstructionHandleResult.DetectedSaveSerialiser), /**** ** rewrite CIL to fix incompatible code |