add check for eft exe #5

Merged
waffle.lord merged 1 commits from fix/no-eft-exe-check into main 2022-05-01 13:05:56 -04:00
2 changed files with 8 additions and 0 deletions
Showing only changes of commit d25b0e5dfe - Show all commits

View File

@ -44,6 +44,14 @@ namespace PatchClient.ViewModels
{
this.WhenActivated((CompositeDisposable disposables) =>
{
//check if escapefromtarkov.exe is present
if(!File.Exists(Path.Join(Directory.GetCurrentDirectory(), "escapefromtarkov.exe")))
{
NavigateTo(new MessageViewModel(HostScreen, "EscapeFromTarkov.exe was not found. Please ensure you have copied the patcher to your SPT folder."));
return;
}
//check if patch folder is present
if(!Directory.Exists(LazyOperations.PatchFolder))
{
NavigateTo(new MessageViewModel(HostScreen, $"{LazyOperations.PatchFolder} folder is missing. Please copy it to\n'{Environment.CurrentDirectory}'\nand try patching again."));