mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-30 19:17:10 +02:00
add android bionic nce support
This commit is contained in:
parent
44551a0409
commit
9c510fec3e
4 changed files with 120 additions and 21 deletions
|
@ -11,7 +11,7 @@ namespace Ryujinx.Cpu.Nce
|
|||
|
||||
public static IntPtr GetCurrentThreadHandle()
|
||||
{
|
||||
if (OperatingSystem.IsLinux() || OperatingSystem.IsMacOS() || OperatingSystem.IsAndroid())
|
||||
if (OperatingSystem.IsLinux() || OperatingSystem.IsMacOS() || Ryujinx.Common.SystemInfo.SystemInfo.IsBionic)
|
||||
{
|
||||
return NceThreadPalUnix.GetCurrentThreadHandle();
|
||||
}
|
||||
|
@ -23,14 +23,14 @@ namespace Ryujinx.Cpu.Nce
|
|||
|
||||
public static void SuspendThread(IntPtr handle)
|
||||
{
|
||||
if (OperatingSystem.IsLinux() || OperatingSystem.IsMacOS())
|
||||
{
|
||||
NceThreadPalUnix.SuspendThread(handle);
|
||||
}
|
||||
else if (OperatingSystem.IsAndroid())
|
||||
if (Ryujinx.Common.SystemInfo.SystemInfo.IsBionic)
|
||||
{
|
||||
NceThreadPalAndroid.SuspendThread(handle);
|
||||
}
|
||||
else if (OperatingSystem.IsLinux() || OperatingSystem.IsMacOS())
|
||||
{
|
||||
NceThreadPalUnix.SuspendThread(handle);
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new PlatformNotSupportedException();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue