2023-01-04 22:15:45 +00:00
|
|
|
|
using Ryujinx.Horizon.Common;
|
|
|
|
|
using Ryujinx.Horizon.Sdk.Lm;
|
|
|
|
|
using Ryujinx.Horizon.Sdk.Sf;
|
|
|
|
|
|
2023-01-08 12:13:39 +00:00
|
|
|
|
namespace Ryujinx.Horizon.LogManager.Ipc
|
2023-01-04 22:15:45 +00:00
|
|
|
|
{
|
2023-01-08 12:13:39 +00:00
|
|
|
|
partial class LogService : ILogService
|
2023-01-04 22:15:45 +00:00
|
|
|
|
{
|
|
|
|
|
public LogDestination LogDestination { get; set; } = LogDestination.TargetManager;
|
|
|
|
|
|
|
|
|
|
[CmifCommand(0)]
|
2023-01-08 12:13:39 +00:00
|
|
|
|
public Result OpenLogger(out LmLogger logger, [ClientProcessId] ulong pid)
|
2023-01-04 22:15:45 +00:00
|
|
|
|
{
|
2023-01-08 12:13:39 +00: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 22:15:45 +00:00
|
|
|
|
|
|
|
|
|
return Result.Success;
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-01-08 12:13:39 +00:00
|
|
|
|
}
|