@@ 24,6 24,7 @@ namespace NosTaleGfless
Process = process;
_cancellationTokenSource = new CancellationTokenSource();
+ Process.Process.EnableRaisingEvents = true;
Process.Process.Exited += OnNostaleExit;
}
@@ 1,10 0,0 @@
-using System.Collections.Generic;
-
-namespace NostaleAuth.Extensions
-{
- public static class DictionaryExtension
- {
- public static V GetValueOrDefault<K, V>(this IDictionary<K, V> dictionary, K key, V value) => dictionary.TryGetValue(key, out V result) ? result : value;
- public static V GetValueOrDefault<K, V>(this IDictionary<K, V> dictionary, K key) => dictionary.GetValueOrDefault(key, default);
- }
-}>
\ No newline at end of file