diff --git a/OTAPI.Client.Launcher/Actions/OTAPI.cs b/OTAPI.Client.Launcher/Actions/OTAPI.cs index 82c7f7ec5..653270de6 100644 --- a/OTAPI.Client.Launcher/Actions/OTAPI.cs +++ b/OTAPI.Client.Launcher/Actions/OTAPI.cs @@ -114,7 +114,6 @@ public static void Launch(string[] args) GC.Collect(); - CSharpLoader.OnCompilationContext += CSharpLoader_OnCompilationContext; AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve; @@ -232,7 +231,7 @@ static string ResolveFile(string path) using var stream = root.GetManifestResourceStream(text); if (stream is null) return null; byte[] array = new byte[stream.Length]; - stream.Read(array, 0, array.Length); + stream.ReadExactly(array); stream.Seek(0, SeekOrigin.Begin); // if (!File.Exists(resourceName)) @@ -267,10 +266,10 @@ static IntPtr ResolveNativeDep(string libraryName, Assembly assembly, DllImportS IEnumerable matches = Enumerable.Empty(); foreach (var basePath in new[] { - Environment.CurrentDirectory, - AppContext.BaseDirectory, - Path.Combine(Environment.CurrentDirectory, "client") - }) + Environment.CurrentDirectory, + AppContext.BaseDirectory, + Path.Combine(Environment.CurrentDirectory, "client") + }) { if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) { diff --git a/OTAPI.Client.Launcher/MainWindow.axaml b/OTAPI.Client.Launcher/MainWindow.axaml index b47eaf06f..39a3a3505 100644 --- a/OTAPI.Client.Launcher/MainWindow.axaml +++ b/OTAPI.Client.Launcher/MainWindow.axaml @@ -23,7 +23,7 @@