Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Commit b8c4be4

Browse files
committed
Fix disposed TextWriter bug, bump version
1 parent b6966f8 commit b8c4be4

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

src/CSConsole/ScriptEvaluator.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,8 @@ private void Reference(Assembly asm)
5151
ReferenceAssembly(asm);
5252
}
5353

54-
private static CompilerContext context;
55-
5654
private static CompilerContext BuildContext(TextWriter tw)
5755
{
58-
if (context != null)
59-
return context;
60-
6156
_reportPrinter = new StreamReportPrinter(tw);
6257

6358
var settings = new CompilerSettings
@@ -70,7 +65,7 @@ private static CompilerContext BuildContext(TextWriter tw)
7065
EnhancedWarnings = false
7166
};
7267

73-
return context = new CompilerContext(settings, _reportPrinter);
68+
return new CompilerContext(settings, _reportPrinter);
7469
}
7570

7671
private static void ImportAppdomainAssemblies(Action<Assembly> import)

src/ExplorerCore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace UnityExplorer
1818
public static class ExplorerCore
1919
{
2020
public const string NAME = "UnityExplorer";
21-
public const string VERSION = "4.5.8";
21+
public const string VERSION = "4.5.9";
2222
public const string AUTHOR = "Sinai";
2323
public const string GUID = "com.sinai.unityexplorer";
2424

src/UnityExplorer.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,13 @@
175175
<Private>False</Private>
176176
</Reference>
177177
<Reference Include="UniverseLib.Mono">
178-
<HintPath>packages\UniverseLib.1.2.10\lib\net35\UniverseLib.Mono.dll</HintPath>
178+
<HintPath>packages\UniverseLib.1.2.11\lib\net35\UniverseLib.Mono.dll</HintPath>
179179
</Reference>
180180
</ItemGroup>
181181
<!-- Il2Cpp refs -->
182182
<ItemGroup Condition="'$(IsCpp)'=='true'">
183183
<Reference Include="UniverseLib.IL2CPP">
184-
<HintPath>packages\UniverseLib.1.2.10\lib\net472\UniverseLib.IL2CPP.dll</HintPath>
184+
<HintPath>packages\UniverseLib.1.2.11\lib\net472\UniverseLib.IL2CPP.dll</HintPath>
185185
</Reference>
186186
<Reference Include="UnhollowerBaseLib, Version=0.4.22.0, Culture=neutral, processorArchitecture=MSIL">
187187
<HintPath>packages\Il2CppAssemblyUnhollower.BaseLib.0.4.22\lib\net472\UnhollowerBaseLib.dll</HintPath>

src/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
<package id="ILRepack.Lib.MSBuild.Task" version="2.0.18.2" targetFramework="net35" />
77
<package id="Mono.Cecil" version="0.10.4" targetFramework="net35" />
88
<package id="Samboy063.Tomlet" version="3.1.3" targetFramework="net472" />
9-
<package id="UniverseLib" version="1.2.10" targetFramework="net35" />
9+
<package id="UniverseLib" version="1.2.11" targetFramework="net35" />
1010
<package id="UniverseLib.Analyzers" version="1.0.3" targetFramework="net35" developmentDependency="true" />
1111
</packages>

0 commit comments

Comments
 (0)