aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services/Am
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2018-10-17 14:15:50 -0300
committergdkchan <gab.dark.100@gmail.com>2018-10-17 14:15:50 -0300
commitb3a4662be15bd63d5b70cf4be21d79959e11ccfc (patch)
treedaca12b81aafcae1651e89c434f2e7cfd8a85132 /Ryujinx.HLE/HOS/Services/Am
parent9b19ea3c87518234fd72a6dead727eb5d8379c0d (diff)
Move logging to Ryujinx.Common and make it a static class (#413)
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Am')
-rw-r--r--Ryujinx.HLE/HOS/Services/Am/IApplicationFunctions.cs12
-rw-r--r--Ryujinx.HLE/HOS/Services/Am/IAudioController.cs12
-rw-r--r--Ryujinx.HLE/HOS/Services/Am/ICommonStateGetter.cs6
-rw-r--r--Ryujinx.HLE/HOS/Services/Am/IHomeMenuFunctions.cs6
-rw-r--r--Ryujinx.HLE/HOS/Services/Am/ILibraryAppletAccessor.cs12
-rw-r--r--Ryujinx.HLE/HOS/Services/Am/ISelfController.cs30
-rw-r--r--Ryujinx.HLE/HOS/Services/Am/IWindowController.cs6
7 files changed, 42 insertions, 42 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Am/IApplicationFunctions.cs b/Ryujinx.HLE/HOS/Services/Am/IApplicationFunctions.cs
index 0a10d2a6..1934798b 100644
--- a/Ryujinx.HLE/HOS/Services/Am/IApplicationFunctions.cs
+++ b/Ryujinx.HLE/HOS/Services/Am/IApplicationFunctions.cs
@@ -1,5 +1,5 @@
+using Ryujinx.Common.Logging;
using Ryujinx.HLE.HOS.Ipc;
-using Ryujinx.HLE.Logging;
using System.Collections.Generic;
namespace Ryujinx.HLE.HOS.Services.Am
@@ -39,7 +39,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
long UIdLow = Context.RequestData.ReadInt64();
long UIdHigh = Context.RequestData.ReadInt64();
- Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
+ Logger.PrintStub(LogClass.ServiceAm, "Stubbed.");
Context.ResponseData.Write(0L);
@@ -59,7 +59,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
string Result = GetFormattedErrorCode(ErrorCode);
- Context.Device.Log.PrintInfo(LogClass.ServiceAm, $"Result = 0x{ErrorCode:x8} ({Result}).");
+ Logger.PrintInfo(LogClass.ServiceAm, $"Result = 0x{ErrorCode:x8} ({Result}).");
return 0;
}
@@ -90,7 +90,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
public long GetPseudoDeviceId(ServiceCtx Context)
{
- Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
+ Logger.PrintStub(LogClass.ServiceAm, "Stubbed.");
Context.ResponseData.Write(0L);
Context.ResponseData.Write(0L);
@@ -100,7 +100,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
public long InitializeGamePlayRecording(ServiceCtx Context)
{
- Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
+ Logger.PrintStub(LogClass.ServiceAm, "Stubbed.");
return 0;
}
@@ -109,7 +109,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
{
int State = Context.RequestData.ReadInt32();
- Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
+ Logger.PrintStub(LogClass.ServiceAm, "Stubbed.");
return 0;
}
diff --git a/Ryujinx.HLE/HOS/Services/Am/IAudioController.cs b/Ryujinx.HLE/HOS/Services/Am/IAudioController.cs
index 8968ad72..062f2d86 100644
--- a/Ryujinx.HLE/HOS/Services/Am/IAudioController.cs
+++ b/Ryujinx.HLE/HOS/Services/Am/IAudioController.cs
@@ -1,5 +1,5 @@
+using Ryujinx.Common.Logging;
using Ryujinx.HLE.HOS.Ipc;
-using Ryujinx.HLE.Logging;
using System.Collections.Generic;
namespace Ryujinx.HLE.HOS.Services.Am
@@ -27,7 +27,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
float AppletVolume = Context.RequestData.ReadSingle();
float LibraryAppletVolume = Context.RequestData.ReadSingle();
- Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
+ Logger.PrintStub(LogClass.ServiceAm, "Stubbed.");
return 0;
}
@@ -36,7 +36,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
{
Context.ResponseData.Write(1f);
- Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
+ Logger.PrintStub(LogClass.ServiceAm, "Stubbed.");
return 0;
}
@@ -45,7 +45,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
{
Context.ResponseData.Write(1f);
- Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
+ Logger.PrintStub(LogClass.ServiceAm, "Stubbed.");
return 0;
}
@@ -55,7 +55,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
float Unknown0 = Context.RequestData.ReadSingle();
long Unknown1 = Context.RequestData.ReadInt64();
- Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
+ Logger.PrintStub(LogClass.ServiceAm, "Stubbed.");
return 0;
}
@@ -64,7 +64,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
{
float Unknown0 = Context.RequestData.ReadSingle();
- Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
+ Logger.PrintStub(LogClass.ServiceAm, "Stubbed.");
return 0;
}
diff --git a/Ryujinx.HLE/HOS/Services/Am/ICommonStateGetter.cs b/Ryujinx.HLE/HOS/Services/Am/ICommonStateGetter.cs
index 4ea18d32..6b012689 100644
--- a/Ryujinx.HLE/HOS/Services/Am/ICommonStateGetter.cs
+++ b/Ryujinx.HLE/HOS/Services/Am/ICommonStateGetter.cs
@@ -1,6 +1,6 @@
+using Ryujinx.Common.Logging;
using Ryujinx.HLE.HOS.Ipc;
using Ryujinx.HLE.HOS.Kernel;
-using Ryujinx.HLE.Logging;
using System;
using System.Collections.Generic;
@@ -85,7 +85,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
{
Context.ResponseData.Write((byte)0); //Unknown value.
- Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
+ Logger.PrintStub(LogClass.ServiceAm, "Stubbed.");
return 0;
}
@@ -114,7 +114,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
Context.Response.HandleDesc = IpcHandleDesc.MakeCopy(Handle);
- Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
+ Logger.PrintStub(LogClass.ServiceAm, "Stubbed.");
return 0;
}
diff --git a/Ryujinx.HLE/HOS/Services/Am/IHomeMenuFunctions.cs b/Ryujinx.HLE/HOS/Services/Am/IHomeMenuFunctions.cs
index a476aff9..3f026e2f 100644
--- a/Ryujinx.HLE/HOS/Services/Am/IHomeMenuFunctions.cs
+++ b/Ryujinx.HLE/HOS/Services/Am/IHomeMenuFunctions.cs
@@ -1,6 +1,6 @@
+using Ryujinx.Common.Logging;
using Ryujinx.HLE.HOS.Ipc;
using Ryujinx.HLE.HOS.Kernel;
-using Ryujinx.HLE.Logging;
using System;
using System.Collections.Generic;
@@ -28,7 +28,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
public long RequestToGetForeground(ServiceCtx Context)
{
- Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
+ Logger.PrintStub(LogClass.ServiceAm, "Stubbed.");
return 0;
}
@@ -42,7 +42,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
Context.Response.HandleDesc = IpcHandleDesc.MakeCopy(Handle);
- Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
+ Logger.PrintStub(LogClass.ServiceAm, "Stubbed.");
return 0;
}
diff --git a/Ryujinx.HLE/HOS/Services/Am/ILibraryAppletAccessor.cs b/Ryujinx.HLE/HOS/Services/Am/ILibraryAppletAccessor.cs
index 07b8d971..9e0d0e70 100644
--- a/Ryujinx.HLE/HOS/Services/Am/ILibraryAppletAccessor.cs
+++ b/Ryujinx.HLE/HOS/Services/Am/ILibraryAppletAccessor.cs
@@ -1,6 +1,6 @@
-using Ryujinx.HLE.HOS.Ipc;
+using Ryujinx.Common.Logging;
+using Ryujinx.HLE.HOS.Ipc;
using Ryujinx.HLE.HOS.Kernel;
-using Ryujinx.HLE.Logging;
using System;
using System.Collections.Generic;
@@ -39,28 +39,28 @@ namespace Ryujinx.HLE.HOS.Services.Am
Context.Response.HandleDesc = IpcHandleDesc.MakeCopy(Handle);
- Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
+ Logger.PrintStub(LogClass.ServiceAm, "Stubbed.");
return 0;
}
public long Start(ServiceCtx Context)
{
- Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
+ Logger.PrintStub(LogClass.ServiceAm, "Stubbed.");
return 0;
}
public long GetResult(ServiceCtx Context)
{
- Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
+ Logger.PrintStub(LogClass.ServiceAm, "Stubbed.");
return 0;
}
public long PushInData(ServiceCtx Context)
{
- Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
+ Logger.PrintStub(LogClass.ServiceAm, "Stubbed.");
return 0;
}
diff --git a/Ryujinx.HLE/HOS/Services/Am/ISelfController.cs b/Ryujinx.HLE/HOS/Services/Am/ISelfController.cs
index ef69f598..2abaee2e 100644
--- a/Ryujinx.HLE/HOS/Services/Am/ISelfController.cs
+++ b/Ryujinx.HLE/HOS/Services/Am/ISelfController.cs
@@ -1,6 +1,6 @@
+using Ryujinx.Common.Logging;
using Ryujinx.HLE.HOS.Ipc;
using Ryujinx.HLE.HOS.Kernel;
-using Ryujinx.HLE.Logging;
using System;
using System.Collections.Generic;
@@ -41,21 +41,21 @@ namespace Ryujinx.HLE.HOS.Services.Am
public long Exit(ServiceCtx Context)
{
- Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
+ Logger.PrintStub(LogClass.ServiceAm, "Stubbed.");
return 0;
}
public long LockExit(ServiceCtx Context)
{
- Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
+ Logger.PrintStub(LogClass.ServiceAm, "Stubbed.");
return 0;
}
public long UnlockExit(ServiceCtx Context)
{
- Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
+ Logger.PrintStub(LogClass.ServiceAm, "Stubbed.");
return 0;
}
@@ -71,7 +71,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
Context.Response.HandleDesc = IpcHandleDesc.MakeCopy(Handle);
- Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
+ Logger.PrintStub(LogClass.ServiceAm, "Stubbed.");
return 0;
}
@@ -80,7 +80,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
{
bool Enable = Context.RequestData.ReadByte() != 0 ? true : false;
- Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
+ Logger.PrintStub(LogClass.ServiceAm, "Stubbed.");
return 0;
}
@@ -89,7 +89,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
{
bool Enable = Context.RequestData.ReadByte() != 0 ? true : false;
- Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
+ Logger.PrintStub(LogClass.ServiceAm, "Stubbed.");
return 0;
}
@@ -98,7 +98,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
{
bool Enable = Context.RequestData.ReadByte() != 0 ? true : false;
- Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
+ Logger.PrintStub(LogClass.ServiceAm, "Stubbed.");
return 0;
}
@@ -109,7 +109,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
bool Flag2 = Context.RequestData.ReadByte() != 0 ? true : false;
bool Flag3 = Context.RequestData.ReadByte() != 0 ? true : false;
- Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
+ Logger.PrintStub(LogClass.ServiceAm, "Stubbed.");
return 0;
}
@@ -118,7 +118,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
{
bool Enable = Context.RequestData.ReadByte() != 0 ? true : false;
- Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
+ Logger.PrintStub(LogClass.ServiceAm, "Stubbed.");
return 0;
}
@@ -127,7 +127,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
{
bool Enable = Context.RequestData.ReadByte() != 0 ? true : false;
- Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
+ Logger.PrintStub(LogClass.ServiceAm, "Stubbed.");
return 0;
}
@@ -136,7 +136,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
{
int Orientation = Context.RequestData.ReadInt32();
- Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
+ Logger.PrintStub(LogClass.ServiceAm, "Stubbed.");
return 0;
}
@@ -145,7 +145,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
{
bool Enable = Context.RequestData.ReadByte() != 0 ? true : false;
- Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
+ Logger.PrintStub(LogClass.ServiceAm, "Stubbed.");
return 0;
}
@@ -155,7 +155,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
{
IdleTimeDetectionExtension = Context.RequestData.ReadInt32();
- Context.Device.Log.PrintStub(LogClass.ServiceAm, $"Stubbed. IdleTimeDetectionExtension: {IdleTimeDetectionExtension}");
+ Logger.PrintStub(LogClass.ServiceAm, $"Stubbed. IdleTimeDetectionExtension: {IdleTimeDetectionExtension}");
return 0;
}
@@ -165,7 +165,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
{
Context.ResponseData.Write(IdleTimeDetectionExtension);
- Context.Device.Log.PrintStub(LogClass.ServiceAm, $"Stubbed. IdleTimeDetectionExtension: {IdleTimeDetectionExtension}");
+ Logger.PrintStub(LogClass.ServiceAm, $"Stubbed. IdleTimeDetectionExtension: {IdleTimeDetectionExtension}");
return 0;
}
diff --git a/Ryujinx.HLE/HOS/Services/Am/IWindowController.cs b/Ryujinx.HLE/HOS/Services/Am/IWindowController.cs
index 1a5a716f..de5137d1 100644
--- a/Ryujinx.HLE/HOS/Services/Am/IWindowController.cs
+++ b/Ryujinx.HLE/HOS/Services/Am/IWindowController.cs
@@ -1,5 +1,5 @@
+using Ryujinx.Common.Logging;
using Ryujinx.HLE.HOS.Ipc;
-using Ryujinx.HLE.Logging;
using System.Collections.Generic;
namespace Ryujinx.HLE.HOS.Services.Am
@@ -21,7 +21,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
public long GetAppletResourceUserId(ServiceCtx Context)
{
- Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
+ Logger.PrintStub(LogClass.ServiceAm, "Stubbed.");
Context.ResponseData.Write(0L);
@@ -30,7 +30,7 @@ namespace Ryujinx.HLE.HOS.Services.Am
public long AcquireForegroundRights(ServiceCtx Context)
{
- Context.Device.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
+ Logger.PrintStub(LogClass.ServiceAm, "Stubbed.");
return 0;
}