diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2018-04-24 15:57:39 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-24 15:57:39 -0300 |
| commit | a8ba340ddef566517f197911863b127545685d5d (patch) | |
| tree | 2884d6865db8eacfc875583d2bdab83f6ed3c996 /Ryujinx.Core/Hid | |
| parent | 4e24866b47cbfd1179bb7a135338fcef1be80941 (diff) | |
Improved logging (#103)
Diffstat (limited to 'Ryujinx.Core/Hid')
| -rw-r--r-- | Ryujinx.Core/Hid/Hid.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Ryujinx.Core/Hid/Hid.cs b/Ryujinx.Core/Hid/Hid.cs index be122c60..6cda6399 100644 --- a/Ryujinx.Core/Hid/Hid.cs +++ b/Ryujinx.Core/Hid/Hid.cs @@ -1,4 +1,5 @@ using ChocolArm64.Memory; +using Ryujinx.Core.Logging; using Ryujinx.Core.OsHle.Handles; using System; @@ -61,12 +62,16 @@ namespace Ryujinx.Core.Input private const int HidEntryCount = 17; + private Logger Log; + private object ShMemLock; private (AMemory, long)[] ShMemPositions; - public Hid() + public Hid(Logger Log) { + this.Log = Log; + ShMemLock = new object(); ShMemPositions = new (AMemory, long)[0]; @@ -82,7 +87,7 @@ namespace Ryujinx.Core.Input (AMemory Memory, long Position) ShMem = ShMemPositions[ShMemPositions.Length - 1]; - Logging.Info(LogClass.ServiceHid, $"HID shared memory successfully mapped to 0x{ShMem.Position:x16}!"); + Log.PrintInfo(LogClass.Hid, $"HID shared memory successfully mapped to 0x{ShMem.Position:x16}!"); Init(ShMem.Memory, ShMem.Position); } |
