From d30876e651825fdbee026328ed73c0dfd0c7559d Mon Sep 17 00:00:00 2001 From: Rutherther Date: Sun, 12 Feb 2023 21:59:49 +0100 Subject: [PATCH] feat: temporarily disable finding NtClient and encryptionKey --- src/PacketLogger/Models/NostaleProcesses.cs | 4 +++- src/PacketLogger/ViewModels/DocumentViewModel.cs | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/PacketLogger/Models/NostaleProcesses.cs b/src/PacketLogger/Models/NostaleProcesses.cs index 803f622..80c7855 100644 --- a/src/PacketLogger/Models/NostaleProcesses.cs +++ b/src/PacketLogger/Models/NostaleProcesses.cs @@ -15,6 +15,7 @@ using System.Threading.Tasks; using NosSmooth.Comms.Local; using NosSmooth.Core.Extensions; using NosSmooth.LocalBinding; +using NosSmooth.LocalBinding.Errors; using NosSmooth.LocalBinding.Options; using ReactiveUI; @@ -101,7 +102,8 @@ public class NostaleProcesses : IDisposable new UnitManagerOptions() ); var result = nosBrowserManager.Initialize(); - if (result.IsSuccess) + if (result.IsSuccess || (result.Error is CouldNotInitializeModuleError moduleError + && moduleError.Module.Name.Contains("NtClient"))) { RxApp.MainThreadScheduler.Schedule (() => Processes.Add(new NostaleProcess(process, nosBrowserManager))); diff --git a/src/PacketLogger/ViewModels/DocumentViewModel.cs b/src/PacketLogger/ViewModels/DocumentViewModel.cs index e7ffd19..5b52532 100644 --- a/src/PacketLogger/ViewModels/DocumentViewModel.cs +++ b/src/PacketLogger/ViewModels/DocumentViewModel.cs @@ -194,7 +194,9 @@ public class DocumentViewModel : Document, INotifyPropertyChanged, IDisposable async process => { Loading = true; - var encryptionKey = process.BrowserManager.IsInGame ? process.BrowserManager.NtClient.EncryptionKey : 0; + + // var encryptionKey = process.BrowserManager.IsInGame ? process.BrowserManager.NtClient.EncryptionKey : 0; + var encryptionKey = 0; var client = ActivatorUtilities.CreateInstance (services, process.Process, encryptionKey, Encoding.Default); -- 2.49.0