HorizonOptions.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. namespace Ryujinx.Horizon
  7. {
  8. public readonly struct HorizonOptions
  9. {
  10. public bool IgnoreMissingServices { get; }
  11. public bool ThrowOnInvalidCommandIds { get; }
  12. public HorizonClient BcatClient { get; }
  13. public IFsClient FsClient { get; }
  14. public IEmulatorAccountManager AccountManager { get; }
  15. public IHardwareDeviceDriver AudioDeviceDriver { get; }
  16. public ITickSource TickSource { get; }
  17. public HorizonOptions(
  18. bool ignoreMissingServices,
  19. HorizonClient bcatClient,
  20. IFsClient fsClient,
  21. IEmulatorAccountManager accountManager,
  22. IHardwareDeviceDriver audioDeviceDriver,
  23. ITickSource tickSource)
  24. {
  25. IgnoreMissingServices = ignoreMissingServices;
  26. ThrowOnInvalidCommandIds = true;
  27. BcatClient = bcatClient;
  28. FsClient = fsClient;
  29. AccountManager = accountManager;
  30. AudioDeviceDriver = audioDeviceDriver;
  31. TickSource = tickSource;
  32. }
  33. }
  34. }