Skip to content

Commit

Permalink
Replace VoidEls launcher support with ElsRift. (#268)
Browse files Browse the repository at this point in the history
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 <seandhunt_7@yahoo.com>
  • Loading branch information
AraHaan authored May 7, 2024
1 parent c8b0edf commit a9eaa23
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/PluginFramework/PluginFramework/ExecutionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -94,9 +94,9 @@ public static bool IsElsKomRunning()
/// <param name="launcher">Get if the launcher is currently running.</param>
/// <returns>If the specified program is currently running.</returns>
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,
};
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit a9eaa23

Please sign in to comment.