misc: chore: Fix object creation in HLE project

This commit is contained in:
Evan Husted
2025-01-26 15:15:26 -06:00
parent f1fd5c9366
commit beab133c8d
48 changed files with 194 additions and 194 deletions

View File

@@ -79,11 +79,11 @@ namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard
public void Reset(Action<float> action, int totalMilliseconds, int sleepMilliseconds)
{
// Create a dedicated cancel token for each task.
TRef<bool> cancelled = new TRef<bool>(false);
TRef<bool> cancelled = new(false);
Reset(new Thread(() =>
{
SleepSubstepData substepData = new SleepSubstepData(sleepMilliseconds);
SleepSubstepData substepData = new(sleepMilliseconds);
int totalCount = totalMilliseconds / sleepMilliseconds;
int totalRemainder = totalMilliseconds - totalCount * sleepMilliseconds;
@@ -126,11 +126,11 @@ namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard
public void Reset(Action action, int sleepMilliseconds)
{
// Create a dedicated cancel token for each task.
TRef<bool> cancelled = new TRef<bool>(false);
TRef<bool> cancelled = new(false);
Reset(new Thread(() =>
{
SleepSubstepData substepData = new SleepSubstepData(sleepMilliseconds);
SleepSubstepData substepData = new(sleepMilliseconds);
while (!Volatile.Read(ref cancelled.Value))
{
@@ -147,7 +147,7 @@ namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard
public void Reset(Action action)
{
// Create a dedicated cancel token for each task.
TRef<bool> cancelled = new TRef<bool>(false);
TRef<bool> cancelled = new(false);
Reset(new Thread(() =>
{