From acf3a3f8374df3f9da69846fe8813b78044cb174 Mon Sep 17 00:00:00 2001 From: mageven <62494521+mageven@users.noreply.github.com> Date: Fri, 8 Jan 2021 00:13:33 +0530 Subject: [PATCH] Update missing sample timestamp in DebugPad (#1873) --- Ryujinx.HLE/HOS/Services/Hid/HidDevices/DebugPadDevice.cs | 1 + .../HOS/Services/Hid/Types/SharedMem/DebugPad/DebugPadEntry.cs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Ryujinx.HLE/HOS/Services/Hid/HidDevices/DebugPadDevice.cs b/Ryujinx.HLE/HOS/Services/Hid/HidDevices/DebugPadDevice.cs index 77e9205f..7e708e32 100644 --- a/Ryujinx.HLE/HOS/Services/Hid/HidDevices/DebugPadDevice.cs +++ b/Ryujinx.HLE/HOS/Services/Hid/HidDevices/DebugPadDevice.cs @@ -19,6 +19,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid DebugPadEntry previousEntry = debugPad.Entries[previousIndex]; currentEntry.SampleTimestamp = previousEntry.SampleTimestamp + 1; + currentEntry.SampleTimestamp2 = previousEntry.SampleTimestamp2 + 1; } } } \ No newline at end of file diff --git a/Ryujinx.HLE/HOS/Services/Hid/Types/SharedMem/DebugPad/DebugPadEntry.cs b/Ryujinx.HLE/HOS/Services/Hid/Types/SharedMem/DebugPad/DebugPadEntry.cs index 4a3e7a2e..3089fc5b 100644 --- a/Ryujinx.HLE/HOS/Services/Hid/Types/SharedMem/DebugPad/DebugPadEntry.cs +++ b/Ryujinx.HLE/HOS/Services/Hid/Types/SharedMem/DebugPad/DebugPadEntry.cs @@ -3,6 +3,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid unsafe struct DebugPadEntry { public ulong SampleTimestamp; - fixed byte _unknown[0x20]; + public ulong SampleTimestamp2; + fixed byte _unknown[0x18]; } } \ No newline at end of file