From c5ebd0473f0cd08418e51142c58babf227841f01 Mon Sep 17 00:00:00 2001 From: AraHaan Date: Mon, 6 May 2024 21:18:00 -0400 Subject: [PATCH] Replace VoidEls launcher support with ElsRift. VoidEls will never come back. They would have done so by now if they were coming back. As such I asm replacing VoidEls support with ElsRift support so people can easily apply voice mods to their clients. Signed-off-by: AraHaan --- .../PluginFramework/ExecutionManager.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/PluginFramework/PluginFramework/ExecutionManager.cs b/src/PluginFramework/PluginFramework/ExecutionManager.cs index 6982b9c..bff09a0 100644 --- a/src/PluginFramework/PluginFramework/ExecutionManager.cs +++ b/src/PluginFramework/PluginFramework/ExecutionManager.cs @@ -48,12 +48,12 @@ public static class ExecutionManager ProcessWindowStyle.Normal, $"{ElsDir}\\data\\"); - private static ProcessStartOptions VoidLauncherStartOptions { get; } + private static ProcessStartOptions RiftLauncherStartOptions { get; } = new ProcessStartOptions { WaitForProcessExit = true, }.WithStartInformation( - $"{ElsDir}\\voidels.exe", + $"{ElsDir}\\elsrift.exe", string.Empty, false, false, @@ -94,9 +94,9 @@ public static bool IsElsKomRunning() /// Get if the launcher is currently running. /// If the specified program is currently running. public static bool IsExecuting(bool launcher) - => (launcher, File.Exists($"{ElsDir}\\voidels.exe")) switch - { - (true, true) => VoidLauncherStartOptions.Executing, + => (launcher, File.Exists($"{ElsDir}\\elsrift.exe")) switch + { + (true, true) => RiftLauncherStartOptions.Executing, (true, false) => LauncherStartOptions.Executing, _ => GameStartOptions.Executing, }; @@ -161,11 +161,11 @@ public static void RunElswordLauncher() if (!string.IsNullOrEmpty(ElsDir)) { RunningElsword = true; - VoidLauncherStartOptions.StartInfo.FileName = $"{ElsDir}\\voidels.exe"; - VoidLauncherStartOptions.StartInfo.WorkingDirectory = ElsDir; + RiftLauncherStartOptions.StartInfo.FileName = $"{ElsDir}\\elsrift.exe"; + RiftLauncherStartOptions.StartInfo.WorkingDirectory = ElsDir; try { - VoidLauncherStartOptions.Start(); + RiftLauncherStartOptions.Start(); } catch (FileNotFoundException) {