Skip to content

Commit

Permalink
Now Checks if tamods.dll exists before injecting fix #1
Browse files Browse the repository at this point in the history
  • Loading branch information
ToddButler93 committed Apr 18, 2022
1 parent 2a74e7c commit a147c54
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,24 @@ private void OnProcessLaunched(object sender, InjectorLauncher.OnProcessStatusEv
AutoInjectTimer.Start();
} else
{
SetStatus(LauncherStatus.READY_TO_INJECT);
string dllPath;
switch (config.DLL.Channel)
{
case DLLMode.Release:
dllPath = "tamods.dll";
break;
case DLLMode.Beta:
dllPath = "tamods-beta.dll";
break;
case DLLMode.Edge:
dllPath = "tamods-edge.dll";
break;
default:
dllPath = config.DLL.CustomDLLPath;
break;
}
if (File.Exists(dllPath))
SetStatus(LauncherStatus.READY_TO_INJECT);
}
}));
}
Expand Down

0 comments on commit a147c54

Please sign in to comment.