implement an all-swift approach for detecting JIT (adds support for detecting JIT on iOS 18.4+), adds an easter egg, and more

This commit is contained in:
Stossy11 2025-03-01 20:17:49 +11:00
parent 527ac3fb23
commit 8df465a959
15 changed files with 120 additions and 208 deletions

View file

@ -26,10 +26,16 @@ namespace Ryujinx.Graphics.Nvdec.FFmpeg.Native
{
return $"lib{libraryName}.so.{version}";
}
else if (OperatingSystem.IsMacOS() || OperatingSystem.IsIOS()) // TODO: ffmpeg on ios
else if (OperatingSystem.IsMacOS())
{
return $"lib{libraryName}.{version}.dylib";
}
else if (OperatingSystem.IsIOS())
{
string libName = $"lib{libraryName}.{version}.dylib";
Console.WriteLine($"[iOS] Required firmware library: {libName}");
return libName;
}
else
{
throw new NotImplementedException($"Unsupported OS for FFmpeg: {RuntimeInformation.RuntimeIdentifier}");