Revert back Android check and clarify IsLinux

This commit is contained in:
AdvDebug
2026-08-02 19:56:08 +03:00
parent 951c9e21ee
commit b5addf49db
2 changed files with 4 additions and 1 deletions
@@ -166,7 +166,7 @@ namespace Brovan.Core.Emulation
throw new PlatformNotSupportedException("Brovan currently supports resolving unicorn for Windows and Linux only.");
}
if (string.Equals(LibName, "vulkan-1.dll", StringComparison.OrdinalIgnoreCase) && (GeneralHelper.IsLinux || Android.AndroidHost.IsActive))
if (string.Equals(LibName, "vulkan-1.dll", StringComparison.OrdinalIgnoreCase) && GeneralHelper.IsLinux)
{
if (NativeLibrary.TryLoad("libvulkan.so.1", out IntPtr handle))
return handle;
+3
View File
@@ -166,6 +166,9 @@ namespace Brovan
internal class GeneralHelper
{
public static bool IsWindows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
/// <summary>
/// returns true for android too.
/// </summary>
public static bool IsLinux = RuntimeInformation.IsOSPlatform(OSPlatform.Linux);
public static string WindowsLibsPath = Path.Combine(AppContext.BaseDirectory, "WindowsLibs");