From b3a4662be15bd63d5b70cf4be21d79959e11ccfc Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Wed, 17 Oct 2018 14:15:50 -0300 Subject: Move logging to Ryujinx.Common and make it a static class (#413) --- Ryujinx.HLE/HOS/Services/Nfp/IUser.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'Ryujinx.HLE/HOS/Services/Nfp') diff --git a/Ryujinx.HLE/HOS/Services/Nfp/IUser.cs b/Ryujinx.HLE/HOS/Services/Nfp/IUser.cs index 72a385d2..f0dc825b 100644 --- a/Ryujinx.HLE/HOS/Services/Nfp/IUser.cs +++ b/Ryujinx.HLE/HOS/Services/Nfp/IUser.cs @@ -1,7 +1,7 @@ -using Ryujinx.HLE.HOS.Ipc; +using Ryujinx.Common.Logging; +using Ryujinx.HLE.HOS.Ipc; using Ryujinx.HLE.HOS.Kernel; using Ryujinx.HLE.Input; -using Ryujinx.HLE.Logging; using System; using System.Collections.Generic; @@ -45,7 +45,7 @@ namespace Ryujinx.HLE.HOS.Services.Nfp public long Initialize(ServiceCtx Context) { - Context.Device.Log.PrintStub(LogClass.ServiceNfp, "Stubbed."); + Logger.PrintStub(LogClass.ServiceNfp, "Stubbed."); State = State.Initialized; @@ -54,7 +54,7 @@ namespace Ryujinx.HLE.HOS.Services.Nfp public long AttachActivateEvent(ServiceCtx Context) { - Context.Device.Log.PrintStub(LogClass.ServiceNfp, "Stubbed."); + Logger.PrintStub(LogClass.ServiceNfp, "Stubbed."); if (Context.Process.HandleTable.GenerateHandle(ActivateEvent.ReadableEvent, out int Handle) != KernelResult.Success) { @@ -68,7 +68,7 @@ namespace Ryujinx.HLE.HOS.Services.Nfp public long AttachDeactivateEvent(ServiceCtx Context) { - Context.Device.Log.PrintStub(LogClass.ServiceNfp, "Stubbed."); + Logger.PrintStub(LogClass.ServiceNfp, "Stubbed."); if (Context.Process.HandleTable.GenerateHandle(DeactivateEvent.ReadableEvent, out int Handle) != KernelResult.Success) { @@ -84,7 +84,7 @@ namespace Ryujinx.HLE.HOS.Services.Nfp { Context.ResponseData.Write((int)State); - Context.Device.Log.PrintStub(LogClass.ServiceNfp, "Stubbed."); + Logger.PrintStub(LogClass.ServiceNfp, "Stubbed."); return 0; } @@ -93,7 +93,7 @@ namespace Ryujinx.HLE.HOS.Services.Nfp { Context.ResponseData.Write((int)DeviceState); - Context.Device.Log.PrintStub(LogClass.ServiceNfp, "Stubbed."); + Logger.PrintStub(LogClass.ServiceNfp, "Stubbed."); return 0; } @@ -102,14 +102,14 @@ namespace Ryujinx.HLE.HOS.Services.Nfp { Context.ResponseData.Write((int)NpadId); - Context.Device.Log.PrintStub(LogClass.ServiceNfp, "Stubbed."); + Logger.PrintStub(LogClass.ServiceNfp, "Stubbed."); return 0; } public long AttachAvailabilityChangeEvent(ServiceCtx Context) { - Context.Device.Log.PrintStub(LogClass.ServiceNfp, "Stubbed."); + Logger.PrintStub(LogClass.ServiceNfp, "Stubbed."); if (Context.Process.HandleTable.GenerateHandle(AvailabilityChangeEvent.ReadableEvent, out int Handle) != KernelResult.Success) { -- cgit v1.2.3