From b8c4be473f85a4c8e80515d336d14550766b35d7 Mon Sep 17 00:00:00 2001 From: Sinai <49360850+sinai-dev@users.noreply.github.com> Date: Sun, 6 Mar 2022 00:21:48 +1100 Subject: [PATCH] Fix disposed TextWriter bug, bump version --- src/CSConsole/ScriptEvaluator.cs | 7 +------ src/ExplorerCore.cs | 2 +- src/UnityExplorer.csproj | 4 ++-- src/packages.config | 2 +- 4 files changed, 5 insertions(+), 10 deletions(-) diff --git a/src/CSConsole/ScriptEvaluator.cs b/src/CSConsole/ScriptEvaluator.cs index 58e4513..eb5b92b 100644 --- a/src/CSConsole/ScriptEvaluator.cs +++ b/src/CSConsole/ScriptEvaluator.cs @@ -51,13 +51,8 @@ namespace UnityExplorer.CSConsole ReferenceAssembly(asm); } - private static CompilerContext context; - private static CompilerContext BuildContext(TextWriter tw) { - if (context != null) - return context; - _reportPrinter = new StreamReportPrinter(tw); var settings = new CompilerSettings @@ -70,7 +65,7 @@ namespace UnityExplorer.CSConsole EnhancedWarnings = false }; - return context = new CompilerContext(settings, _reportPrinter); + return new CompilerContext(settings, _reportPrinter); } private static void ImportAppdomainAssemblies(Action import) diff --git a/src/ExplorerCore.cs b/src/ExplorerCore.cs index 3e0ca98..6ac5b9b 100644 --- a/src/ExplorerCore.cs +++ b/src/ExplorerCore.cs @@ -18,7 +18,7 @@ namespace UnityExplorer public static class ExplorerCore { public const string NAME = "UnityExplorer"; - public const string VERSION = "4.5.8"; + public const string VERSION = "4.5.9"; public const string AUTHOR = "Sinai"; public const string GUID = "com.sinai.unityexplorer"; diff --git a/src/UnityExplorer.csproj b/src/UnityExplorer.csproj index 9dc2118..9014c99 100644 --- a/src/UnityExplorer.csproj +++ b/src/UnityExplorer.csproj @@ -175,13 +175,13 @@ False - packages\UniverseLib.1.2.10\lib\net35\UniverseLib.Mono.dll + packages\UniverseLib.1.2.11\lib\net35\UniverseLib.Mono.dll - packages\UniverseLib.1.2.10\lib\net472\UniverseLib.IL2CPP.dll + packages\UniverseLib.1.2.11\lib\net472\UniverseLib.IL2CPP.dll packages\Il2CppAssemblyUnhollower.BaseLib.0.4.22\lib\net472\UnhollowerBaseLib.dll diff --git a/src/packages.config b/src/packages.config index 12254ff..5b79f52 100644 --- a/src/packages.config +++ b/src/packages.config @@ -6,6 +6,6 @@ - + \ No newline at end of file