mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-04 07:42:01 +00:00
fix ffmpeg lib path
This commit is contained in:
parent
49745cfa37
commit
41e2ead0f0
1 changed files with 13 additions and 1 deletions
|
@ -12,6 +12,7 @@ using Ryujinx.Ui;
|
|||
using Ryujinx.Ui.Widgets;
|
||||
using SixLabors.ImageSharp.Formats.Jpeg;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
|
@ -80,7 +81,18 @@ namespace Ryujinx
|
|||
XInitThreads();
|
||||
|
||||
// Configure FFmpeg search path
|
||||
ffmpeg.RootPath = "/lib";
|
||||
Process lddProcess = Process.Start(new ProcessStartInfo
|
||||
{
|
||||
FileName = "/bin/sh",
|
||||
Arguments = "-c \"ldd $(which ffmpeg) | grep libavfilter\"",
|
||||
UseShellExecute = false,
|
||||
RedirectStandardOutput = true
|
||||
});
|
||||
|
||||
ffmpeg.RootPath = Path.GetDirectoryName(lddProcess.StandardOutput.ReadToEnd().Split(" => ")[1]);
|
||||
|
||||
lddProcess.WaitForExit();
|
||||
lddProcess.Close();
|
||||
}
|
||||
|
||||
string systemPath = Environment.GetEnvironmentVariable("Path", EnvironmentVariableTarget.Machine);
|
||||
|
|
Loading…
Reference in a new issue