summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/SCore.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-06-10 22:14:28 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-06-10 22:14:28 -0400
commit0189b282f4db300c70eeef5e9f714aa450deafde (patch)
treee75b434b0c88ef700e6ca9554a02266274fba99f /src/SMAPI/Framework/SCore.cs
parent11a497c1f6f62c0956d6d7265883f58504cee653 (diff)
downloadSMAPI-0189b282f4db300c70eeef5e9f714aa450deafde.tar.gz
SMAPI-0189b282f4db300c70eeef5e9f714aa450deafde.tar.bz2
SMAPI-0189b282f4db300c70eeef5e9f714aa450deafde.zip
add image compatibility mode for PyTK
Diffstat (limited to 'src/SMAPI/Framework/SCore.cs')
-rw-r--r--src/SMAPI/Framework/SCore.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/SCore.cs b/src/SMAPI/Framework/SCore.cs
index fa3f8778..7792c64a 100644
--- a/src/SMAPI/Framework/SCore.cs
+++ b/src/SMAPI/Framework/SCore.cs
@@ -1636,6 +1636,12 @@ namespace StardewModdingAPI.Framework
// initialize translations
this.ReloadTranslations(loaded);
+ // set temporary PyTK compatibility mode
+ {
+ IModInfo? pyTk = this.ModRegistry.Get("Platonymous.Toolkit");
+ ModContentManager.EnablePyTkLegacyMode = pyTk is not null && pyTk.Manifest.Version.IsOlderThan("1.23.1");
+ }
+
// initialize loaded non-content-pack mods
this.Monitor.Log("Launching mods...", LogLevel.Debug);
#pragma warning disable CS0612, CS0618 // deprecated code