HorizonOptions.cs
1 using LibHac; 2 using Ryujinx.Audio.Integration; 3 using Ryujinx.Cpu; 4 using Ryujinx.Horizon.Sdk.Account; 5 using Ryujinx.Horizon.Sdk.Fs; 6 7 namespace Ryujinx.Horizon 8 { 9 public readonly struct HorizonOptions 10 { 11 public bool IgnoreMissingServices { get; } 12 public bool ThrowOnInvalidCommandIds { get; } 13 14 public HorizonClient BcatClient { get; } 15 public IFsClient FsClient { get; } 16 public IEmulatorAccountManager AccountManager { get; } 17 public IHardwareDeviceDriver AudioDeviceDriver { get; } 18 public ITickSource TickSource { get; } 19 20 public HorizonOptions( 21 bool ignoreMissingServices, 22 HorizonClient bcatClient, 23 IFsClient fsClient, 24 IEmulatorAccountManager accountManager, 25 IHardwareDeviceDriver audioDeviceDriver, 26 ITickSource tickSource) 27 { 28 IgnoreMissingServices = ignoreMissingServices; 29 ThrowOnInvalidCommandIds = true; 30 BcatClient = bcatClient; 31 FsClient = fsClient; 32 AccountManager = accountManager; 33 AudioDeviceDriver = audioDeviceDriver; 34 TickSource = tickSource; 35 } 36 } 37 }