2023-01-04 23:15:45 +01:00
|
|
|
|
using Ryujinx.Horizon.Common;
|
|
|
|
|
using Ryujinx.Horizon.Sdk.Lm;
|
|
|
|
|
using Ryujinx.Horizon.Sdk.Sf;
|
|
|
|
|
|
2023-01-08 13:13:39 +01:00
|
|
|
|
namespace Ryujinx.Horizon.LogManager.Ipc
|
2023-01-04 23:15:45 +01:00
|
|
|
|
{
|
2023-01-08 13:13:39 +01:00
|
|
|
|
partial class LogService : ILogService
|
2023-01-04 23:15:45 +01:00
|
|
|
|
{
|
|
|
|
|
public LogDestination LogDestination { get; set; } = LogDestination.TargetManager;
|
|
|
|
|
|
|
|
|
|
[CmifCommand(0)]
|
2023-01-08 13:13:39 +01:00
|
|
|
|
public Result OpenLogger(out LmLogger logger, [ClientProcessId] ulong pid)
|
2023-01-04 23:15:45 +01:00
|
|
|
|
{
|
2023-01-08 13:13:39 +01:00
|
|
|
|
// NOTE: Internal name is Logger, but we rename it LmLogger to avoid name clash with Ryujinx.Common.Logging logger.
|
|
|
|
|
logger = new LmLogger(this, pid);
|
2023-01-04 23:15:45 +01:00
|
|
|
|
|
|
|
|
|
return Result.Success;
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-01-08 13:13:39 +01:00
|
|
|
|
}
|