From ecde4a157007de0fda2c635b6b92d0cf0424a2a2 Mon Sep 17 00:00:00 2001 From: N00MKRAD Date: Sat, 12 Dec 2020 20:25:03 +0100 Subject: [PATCH] Check for RIFE script, cancel if not found --- Code/OS/AiProcess.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Code/OS/AiProcess.cs b/Code/OS/AiProcess.cs index 11f13e9..0538dfb 100644 --- a/Code/OS/AiProcess.cs +++ b/Code/OS/AiProcess.cs @@ -156,6 +156,12 @@ namespace Flowframes args = $" --img {framesPath.Wrap()} --exp {(int)Math.Log(interpFactor, 2)}"; } + if (!File.Exists(Path.Combine(rifeDir, script))) + { + Interpolate.Cancel("RIFE script not found! Make sure you didn't modify any files."); + return; + } + Process rifePy = OSUtils.NewProcess(!OSUtils.ShowHiddenCmd()); AiStarted(rifePy, 3500); rifePy.StartInfo.Arguments = $"{OSUtils.GetCmdArg()} cd /D {PkgUtils.GetPkgFolder(Packages.rifeCuda).Wrap()} & " +