mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-22 06:37:10 +02:00
Hypervisor
This commit is contained in:
parent
5ee90c81e9
commit
9ce29d6ad1
27 changed files with 248 additions and 27 deletions
|
@ -147,8 +147,8 @@ namespace Ryujinx.Headless.SDL2
|
|||
[Option("audio-volume", Required = false, Default = 1.0f, HelpText = "The audio level (0 to 1).")]
|
||||
public float AudioVolume { get; set; }
|
||||
|
||||
[Option("use-hypervisor", Required = false, Default = true, HelpText = "Uses Hypervisor over JIT if available.")]
|
||||
public bool? UseHypervisor { get; set; }
|
||||
[Option("use-hypervisor", Required = false, Default = false, HelpText = "Uses Hypervisor over JIT if available.")]
|
||||
public bool UseHypervisor { get; set; }
|
||||
|
||||
[Option("lan-interface-id", Required = false, Default = "0", HelpText = "GUID for the network interface used by LAN.")]
|
||||
public string MultiplayerLanInterfaceId { get; set; }
|
||||
|
|
|
@ -1283,6 +1283,19 @@ namespace Ryujinx.Headless.SDL2
|
|||
renderer = new ThreadedRenderer(renderer);
|
||||
}
|
||||
|
||||
bool AppleHV = false;
|
||||
|
||||
if ((!OperatingSystem.IsIOSVersionAtLeast(16, 4)) && options.UseHypervisor)
|
||||
{
|
||||
AppleHV = true;
|
||||
}
|
||||
else if (OperatingSystem.IsIOS())
|
||||
{
|
||||
AppleHV = false;
|
||||
} else {
|
||||
AppleHV = options.UseHypervisor;
|
||||
}
|
||||
|
||||
HLEConfiguration configuration = new(_virtualFileSystem,
|
||||
_libHacHorizonManager,
|
||||
_contentManager,
|
||||
|
@ -1306,7 +1319,7 @@ namespace Ryujinx.Headless.SDL2
|
|||
options.IgnoreMissingServices,
|
||||
options.AspectRatio,
|
||||
options.AudioVolume,
|
||||
options.UseHypervisor ?? false,
|
||||
AppleHV,
|
||||
options.MultiplayerLanInterfaceId,
|
||||
Common.Configuration.Multiplayer.MultiplayerMode.LdnMitm);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue