aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/TamperMachine.cs
diff options
context:
space:
mode:
authorMarco Carvalho <marcolucio27@gmail.com>2024-04-19 09:03:52 -0300
committerGitHub <noreply@github.com>2024-04-19 09:03:52 -0300
commit22fb8c9d4f01f0356c29454d18004849f89c67dd (patch)
tree256d40fdca00cb565cff53ab3a547dfd222a281e /src/Ryujinx.HLE/HOS/TamperMachine.cs
parent2f93ae9a191e1fb5415227f004e9a48a11b7a180 (diff)
Update to new standard for volatility operations (#6682)
Diffstat (limited to 'src/Ryujinx.HLE/HOS/TamperMachine.cs')
-rw-r--r--src/Ryujinx.HLE/HOS/TamperMachine.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Ryujinx.HLE/HOS/TamperMachine.cs b/src/Ryujinx.HLE/HOS/TamperMachine.cs
index f234e540..60922153 100644
--- a/src/Ryujinx.HLE/HOS/TamperMachine.cs
+++ b/src/Ryujinx.HLE/HOS/TamperMachine.cs
@@ -143,7 +143,7 @@ namespace Ryujinx.HLE.HOS
try
{
- ControllerKeys pressedKeys = (ControllerKeys)Thread.VolatileRead(ref _pressedKeys);
+ ControllerKeys pressedKeys = (ControllerKeys)Volatile.Read(ref _pressedKeys);
program.Process.TamperedCodeMemory = false;
program.Execute(pressedKeys);
@@ -175,14 +175,14 @@ namespace Ryujinx.HLE.HOS
{
if (input.PlayerId == PlayerIndex.Player1 || input.PlayerId == PlayerIndex.Handheld)
{
- Thread.VolatileWrite(ref _pressedKeys, (long)input.Buttons);
+ Volatile.Write(ref _pressedKeys, (long)input.Buttons);
return;
}
}
// Clear the input because player one is not conected.
- Thread.VolatileWrite(ref _pressedKeys, 0);
+ Volatile.Write(ref _pressedKeys, 0);
}
}
}