0
0
mirror of https://github.com/sp-tarkov/patcher.git synced 2025-02-13 04:30:46 -05:00

add check for eft exe

This commit is contained in:
IsWaffle 2022-05-01 13:04:52 -04:00
parent 64bf4e0932
commit 81468cf9d1
2 changed files with 10 additions and 2 deletions

View File

@ -44,6 +44,14 @@ namespace PatchClient.ViewModels
{ {
this.WhenActivated((CompositeDisposable disposables) => 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)) 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.")); NavigateTo(new MessageViewModel(HostScreen, $"{LazyOperations.PatchFolder} folder is missing. Please copy it to\n'{Environment.CurrentDirectory}'\nand try patching again."));

Binary file not shown.