1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-02 22:32:02 +00:00
This commit is contained in:
Ac_K 2021-05-20 01:38:23 +02:00
parent e4650b7ee2
commit 83d6e4118b

View file

@ -16,8 +16,6 @@ namespace Ryujinx.Graphics.Nvdec.H264
public FFmpegContext() public FFmpegContext()
{ {
SetRootPath();
_logFunc = Log; _logFunc = Log;
// Redirect log output // Redirect log output
@ -32,7 +30,12 @@ namespace Ryujinx.Graphics.Nvdec.H264
_packet = ffmpeg.av_packet_alloc(); _packet = ffmpeg.av_packet_alloc();
} }
private void SetRootPath() static FFmpegContext()
{
SetRootPath();
}
private static void SetRootPath()
{ {
if (OperatingSystem.IsLinux()) if (OperatingSystem.IsLinux())
{ {