mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-06-28 03:16:23 +02:00
iOS - Set Silk.NET SearchPathContainer
This commit is contained in:
parent
c1d19a1ada
commit
deb183d432
1 changed files with 8 additions and 3 deletions
|
@ -37,10 +37,15 @@ namespace LibRyujinx
|
||||||
[UnmanagedCallersOnly(EntryPoint = "graphics_initialize")]
|
[UnmanagedCallersOnly(EntryPoint = "graphics_initialize")]
|
||||||
public static bool InitializeGraphicsNative(GraphicsConfiguration graphicsConfiguration)
|
public static bool InitializeGraphicsNative(GraphicsConfiguration graphicsConfiguration)
|
||||||
{
|
{
|
||||||
if(Ryujinx.Common.PlatformInfo.IsBionic)
|
if (Ryujinx.Common.PlatformInfo.IsBionic)
|
||||||
{
|
{
|
||||||
Silk.NET.Core.Loader.SearchPathContainer.Platform = Silk.NET.Core.Loader.UnderlyingPlatform.Android;
|
Silk.NET.Core.Loader.SearchPathContainer.Platform = Silk.NET.Core.Loader.UnderlyingPlatform.Android;
|
||||||
}
|
}
|
||||||
|
else if (OperatingSystem.IsIOS())
|
||||||
|
{
|
||||||
|
// Yes, macOS not iOS
|
||||||
|
Silk.NET.Core.Loader.SearchPathContainer.Platform = Silk.NET.Core.Loader.UnderlyingPlatform.MacOS;
|
||||||
|
}
|
||||||
return InitializeGraphics(graphicsConfiguration);
|
return InitializeGraphics(graphicsConfiguration);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue