Move logging to Ryujinx.Common and make it a static class (#413)

This commit is contained in:
ReinUsesLisp 2018-10-17 14:15:50 -03:00 committed by gdkchan
parent 9b19ea3c87
commit b3a4662be1
61 changed files with 612 additions and 585 deletions

View file

@ -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)
{