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