2023-05-09 21:46:23 +00:00
|
|
|
using LibHac;
|
2024-02-22 19:58:33 +00:00
|
|
|
using Ryujinx.Audio.Integration;
|
|
|
|
using Ryujinx.Cpu;
|
2024-01-29 21:45:40 +00:00
|
|
|
using Ryujinx.Horizon.Sdk.Account;
|
2023-09-27 17:21:26 +00:00
|
|
|
using Ryujinx.Horizon.Sdk.Fs;
|
2023-05-09 21:46:23 +00:00
|
|
|
|
2023-01-04 22:15:45 +00:00
|
|
|
namespace Ryujinx.Horizon
|
|
|
|
{
|
2023-07-01 10:42:10 +00:00
|
|
|
public readonly struct HorizonOptions
|
2023-01-04 22:15:45 +00:00
|
|
|
{
|
2023-07-01 10:42:10 +00:00
|
|
|
public bool IgnoreMissingServices { get; }
|
2023-01-08 12:13:39 +00:00
|
|
|
public bool ThrowOnInvalidCommandIds { get; }
|
2023-01-04 22:15:45 +00:00
|
|
|
|
2023-05-09 21:46:23 +00:00
|
|
|
public HorizonClient BcatClient { get; }
|
2023-09-27 17:21:26 +00:00
|
|
|
public IFsClient FsClient { get; }
|
2024-01-29 21:45:40 +00:00
|
|
|
public IEmulatorAccountManager AccountManager { get; }
|
2024-02-22 19:58:33 +00:00
|
|
|
public IHardwareDeviceDriver AudioDeviceDriver { get; }
|
|
|
|
public ITickSource TickSource { get; }
|
2023-05-09 21:46:23 +00:00
|
|
|
|
2024-02-22 19:58:33 +00:00
|
|
|
public HorizonOptions(
|
|
|
|
bool ignoreMissingServices,
|
|
|
|
HorizonClient bcatClient,
|
|
|
|
IFsClient fsClient,
|
|
|
|
IEmulatorAccountManager accountManager,
|
|
|
|
IHardwareDeviceDriver audioDeviceDriver,
|
|
|
|
ITickSource tickSource)
|
2023-01-04 22:15:45 +00:00
|
|
|
{
|
2023-07-01 10:42:10 +00:00
|
|
|
IgnoreMissingServices = ignoreMissingServices;
|
2023-01-08 12:13:39 +00:00
|
|
|
ThrowOnInvalidCommandIds = true;
|
2023-07-01 10:42:10 +00:00
|
|
|
BcatClient = bcatClient;
|
2023-09-27 17:21:26 +00:00
|
|
|
FsClient = fsClient;
|
2024-01-29 21:45:40 +00:00
|
|
|
AccountManager = accountManager;
|
2024-02-22 19:58:33 +00:00
|
|
|
AudioDeviceDriver = audioDeviceDriver;
|
|
|
|
TickSource = tickSource;
|
2023-01-04 22:15:45 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|