LogService.cs 623 B

1234567891011121314151617181920
  1. using Ryujinx.Horizon.Common;
  2. using Ryujinx.Horizon.Sdk.Lm;
  3. using Ryujinx.Horizon.Sdk.Sf;
  4. namespace Ryujinx.Horizon.LogManager.Ipc
  5. {
  6. partial class LogService : ILogService
  7. {
  8. public LogDestination LogDestination { get; set; } = LogDestination.TargetManager;
  9. [CmifCommand(0)]
  10. public Result OpenLogger(out LmLogger logger, [ClientProcessId] ulong pid)
  11. {
  12. // NOTE: Internal name is Logger, but we rename it LmLogger to avoid name clash with Ryujinx.Common.Logging logger.
  13. logger = new LmLogger(this, pid);
  14. return Result.Success;
  15. }
  16. }
  17. }