add bionic nativeaot support

This commit is contained in:
Emmanuel Hansen 2023-06-25 17:33:35 +00:00
parent ad0f9a7fc7
commit 4d06f19fe7
45 changed files with 2046 additions and 27 deletions

View file

@ -15,17 +15,17 @@ namespace LibRyujinx
[UnmanagedCallersOnly(EntryPoint = "device_initialize")]
public static bool InitializeDeviceNative()
{
return InitializeDevice();
return InitializeDevice(true);
}
public static bool InitializeDevice()
public static bool InitializeDevice(bool isHostMapped)
{
if (SwitchDevice == null)
{
return false;
}
return SwitchDevice.InitializeContext();
return SwitchDevice.InitializeContext(isHostMapped);
}
[UnmanagedCallersOnly(EntryPoint = "device_load")]