0
0
mirror of https://github.com/sp-tarkov/patcher.git synced 2025-02-13 01:50:47 -05:00

Merge pull request 'add check for eft exe' (#5) from fix/no-eft-exe-check into main

Reviewed-on: waffle.lord/Patcher#5
This commit is contained in:
IsWaffle 2022-05-01 17:05:55 +00:00
commit 334bc93ef7
2 changed files with 10 additions and 2 deletions

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."));

Binary file not shown.