mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-04 18:42:01 +00:00
Check if ffmpeg isn't found
This commit is contained in:
parent
41e2ead0f0
commit
d73ac20488
1 changed files with 10 additions and 1 deletions
|
@ -89,10 +89,19 @@ namespace Ryujinx
|
|||
RedirectStandardOutput = true
|
||||
});
|
||||
|
||||
ffmpeg.RootPath = Path.GetDirectoryName(lddProcess.StandardOutput.ReadToEnd().Split(" => ")[1]);
|
||||
string lddOutput = lddProcess.StandardOutput.ReadToEnd();
|
||||
|
||||
lddProcess.WaitForExit();
|
||||
lddProcess.Close();
|
||||
|
||||
if (lddOutput.Contains(" => "))
|
||||
{
|
||||
ffmpeg.RootPath = Path.GetDirectoryName(lddOutput.Split(" => ")[1]);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.Error?.PrintMsg(LogClass.FFmpeg, "FFmpeg wasn't found. Make sure that you have it installed and up to date.");
|
||||
}
|
||||
}
|
||||
|
||||
string systemPath = Environment.GetEnvironmentVariable("Path", EnvironmentVariableTarget.Machine);
|
||||
|
|
Loading…
Reference in a new issue