From 0a26ed8e8eb5d8377f0c7690d31be50881556446 Mon Sep 17 00:00:00 2001 From: Yunivers <92553545+AITYunivers@users.noreply.github.com> Date: Fri, 21 Nov 2025 00:18:50 -0700 Subject: [PATCH] Give autosplitters the ability to use System.Text.Json --- src/LiveSplit.ScriptableAutoSplit/ASL/ASLMethod.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/LiveSplit.ScriptableAutoSplit/ASL/ASLMethod.cs b/src/LiveSplit.ScriptableAutoSplit/ASL/ASLMethod.cs index 6eaf46e..92cb152 100644 --- a/src/LiveSplit.ScriptableAutoSplit/ASL/ASLMethod.cs +++ b/src/LiveSplit.ScriptableAutoSplit/ASL/ASLMethod.cs @@ -50,6 +50,8 @@ public ASLMethod(string code, string name = null, int script_line = 0) using System.Linq; using System.Reflection; using System.Text; +using System.Text.Json; +using System.Text.Json.Nodes; using System.Threading; using System.Windows.Forms; using LiveSplit.ComponentUtil; @@ -90,6 +92,8 @@ public dynamic Execute(LiveSplitState timer, dynamic old, dynamic current, dynam parameters.ReferencedAssemblies.Add("System.Data.dll"); parameters.ReferencedAssemblies.Add("System.Data.DataSetExtensions.dll"); parameters.ReferencedAssemblies.Add("System.Drawing.dll"); + parameters.ReferencedAssemblies.Add("System.Memory.dll"); + parameters.ReferencedAssemblies.Add("System.Text.Json.dll"); parameters.ReferencedAssemblies.Add("System.Windows.Forms.dll"); parameters.ReferencedAssemblies.Add("System.Xml.dll"); parameters.ReferencedAssemblies.Add("System.Xml.Linq.dll");