From 378dc33cca1c4616f6a0ef725e53097dbde8339e Mon Sep 17 00:00:00 2001 From: KeatonTheBot Date: Wed, 24 Sep 2025 09:05:42 -0500 Subject: [PATCH] misc: chore: Discard unused parameters --- .../Native/SoundIoContext.cs | 2 +- .../Native/SoundIoOutStreamContext.cs | 2 +- .../SoundIoHardwareDeviceDriver.cs | 2 +- src/Ryujinx.Cpu/AddressTable.cs | 2 +- .../Multithreading/ThreadedRenderer.cs | 2 +- .../Image/TextureGroup.cs | 14 ++-- .../Synchronization/SynchronizationManager.cs | 2 +- .../CodeGen/Glsl/GlslGenerator.cs | 4 +- .../CodeGen/Spirv/SpirvGenerator.cs | 4 +- .../Translation/FunctionMatch.cs | 2 +- .../PipelineLayoutCache.cs | 2 +- .../FileSystem/VirtualFileSystem.cs | 4 +- .../Services/Account/Acc/AccountManager.cs | 2 +- .../Account/Acc/AccountSaveDataManager.cs | 2 +- .../LdnRyu/Proxy/P2pProxyServer.cs | 6 +- .../Services/SurfaceFlinger/SurfaceFlinger.cs | 2 +- .../Tracking/SmartMultiRegionHandle.cs | 4 +- .../MultiRegionTrackingTests.cs | 14 ++-- src/Ryujinx.Tests.Memory/TrackingTests.cs | 2 +- .../Configuration/ConfigurationState.cs | 70 +++++++++---------- src/Ryujinx/Common/Locale/LocaleExtension.cs | 2 +- src/Ryujinx/Headless/HeadlessRyujinx.Init.cs | 4 +- src/Ryujinx/Headless/WindowBase.cs | 2 +- src/Ryujinx/Modules/Updater/Updater.cs | 2 +- src/Ryujinx/Program.cs | 6 +- .../UI/Applet/SwkbdAppletDialog.axaml.cs | 2 +- .../UI/Controls/NavigationDialogHost.axaml.cs | 2 +- src/Ryujinx/UI/Helpers/NotificationHelper.cs | 2 +- src/Ryujinx/UI/Renderer/EmbeddedWindow.cs | 2 +- .../Views/Input/ControllerInputView.axaml.cs | 2 +- .../UI/Views/Input/KeyboardInputView.axaml.cs | 2 +- .../UI/Views/Input/MotionInputView.axaml.cs | 2 +- .../UI/Views/Input/RumbleInputView.axaml.cs | 2 +- .../Settings/SettingsHotkeysView.axaml.cs | 2 +- .../UI/Views/User/UserEditorView.axaml.cs | 2 +- .../UserFirmwareAvatarSelectorView.axaml.cs | 2 +- .../UserProfileImageSelectorView.axaml.cs | 2 +- .../UI/Views/User/UserRecovererView.axaml.cs | 2 +- .../Views/User/UserSaveManagerView.axaml.cs | 2 +- .../UI/Views/User/UserSelectorView.axaml.cs | 2 +- src/Ryujinx/UI/Windows/MainWindow.axaml.cs | 2 +- 41 files changed, 96 insertions(+), 96 deletions(-) diff --git a/src/Ryujinx.Audio.Backends.SoundIo/Native/SoundIoContext.cs b/src/Ryujinx.Audio.Backends.SoundIo/Native/SoundIoContext.cs index f2e91fcd7..a2acc375f 100644 --- a/src/Ryujinx.Audio.Backends.SoundIo/Native/SoundIoContext.cs +++ b/src/Ryujinx.Audio.Backends.SoundIo/Native/SoundIoContext.cs @@ -43,7 +43,7 @@ namespace Ryujinx.Audio.Backends.SoundIo.Native } else { - _onBackendDisconnectNative = (ctx, err) => _onBackendDisconnect(err); + _onBackendDisconnectNative = (_, err) => _onBackendDisconnect(err); } GetContext().OnBackendDisconnected = Marshal.GetFunctionPointerForDelegate(_onBackendDisconnectNative); diff --git a/src/Ryujinx.Audio.Backends.SoundIo/Native/SoundIoOutStreamContext.cs b/src/Ryujinx.Audio.Backends.SoundIo/Native/SoundIoOutStreamContext.cs index 4148ea0dd..1e805bc74 100644 --- a/src/Ryujinx.Audio.Backends.SoundIo/Native/SoundIoOutStreamContext.cs +++ b/src/Ryujinx.Audio.Backends.SoundIo/Native/SoundIoOutStreamContext.cs @@ -99,7 +99,7 @@ namespace Ryujinx.Audio.Backends.SoundIo.Native } else { - _writeCallbackNative = (ctx, frameCountMin, frameCountMax) => _writeCallback(frameCountMin, frameCountMax); + _writeCallbackNative = (_, frameCountMin, frameCountMax) => _writeCallback(frameCountMin, frameCountMax); } GetOutContext().WriteCallback = Marshal.GetFunctionPointerForDelegate(_writeCallbackNative); diff --git a/src/Ryujinx.Audio.Backends.SoundIo/SoundIoHardwareDeviceDriver.cs b/src/Ryujinx.Audio.Backends.SoundIo/SoundIoHardwareDeviceDriver.cs index e3e5d2913..76480d7eb 100644 --- a/src/Ryujinx.Audio.Backends.SoundIo/SoundIoHardwareDeviceDriver.cs +++ b/src/Ryujinx.Audio.Backends.SoundIo/SoundIoHardwareDeviceDriver.cs @@ -64,7 +64,7 @@ namespace Ryujinx.Audio.Backends.SoundIo try { context = SoundIoContext.Create(); - context.OnBackendDisconnect = err => + context.OnBackendDisconnect = _ => { backendDisconnected = true; }; diff --git a/src/Ryujinx.Cpu/AddressTable.cs b/src/Ryujinx.Cpu/AddressTable.cs index c84782c78..a6aa9d9e0 100644 --- a/src/Ryujinx.Cpu/AddressTable.cs +++ b/src/Ryujinx.Cpu/AddressTable.cs @@ -51,7 +51,7 @@ namespace ARMeilleure.Common { var block = new SparseMemoryBlock(size, pageInit, null); - _trackingEvent = (ulong address, ulong size, bool write) => + _trackingEvent = (ulong address, ulong _, bool _) => { ulong pointer = (ulong)block.Block.Pointer + address; ensureMapped((IntPtr)pointer); diff --git a/src/Ryujinx.Graphics.GAL/Multithreading/ThreadedRenderer.cs b/src/Ryujinx.Graphics.GAL/Multithreading/ThreadedRenderer.cs index 4537ba40b..1750e348f 100644 --- a/src/Ryujinx.Graphics.GAL/Multithreading/ThreadedRenderer.cs +++ b/src/Ryujinx.Graphics.GAL/Multithreading/ThreadedRenderer.cs @@ -78,7 +78,7 @@ namespace Ryujinx.Graphics.GAL.Multithreading { _baseRenderer = renderer; - renderer.ScreenCaptured += (sender, info) => ScreenCaptured?.Invoke(this, info); + renderer.ScreenCaptured += (_, info) => ScreenCaptured?.Invoke(this, info); renderer.SetInterruptAction(Interrupt); Pipeline = new ThreadedPipeline(this); diff --git a/src/Ryujinx.Graphics.Gpu/Image/TextureGroup.cs b/src/Ryujinx.Graphics.Gpu/Image/TextureGroup.cs index 9aa521537..0d104418a 100644 --- a/src/Ryujinx.Graphics.Gpu/Image/TextureGroup.cs +++ b/src/Ryujinx.Graphics.Gpu/Image/TextureGroup.cs @@ -257,7 +257,7 @@ namespace Ryujinx.Graphics.Gpu.Image { bool dirty = false; - EvaluateRelevantHandles(texture, (baseHandle, regionCount, split) => + EvaluateRelevantHandles(texture, (baseHandle, regionCount, _) => { for (int i = 0; i < regionCount; i++) { @@ -288,7 +288,7 @@ namespace Ryujinx.Graphics.Gpu.Image /// The texture being discarded public void DiscardData(Texture texture) { - EvaluateRelevantHandles(texture, (baseHandle, regionCount, split) => + EvaluateRelevantHandles(texture, (baseHandle, regionCount, _) => { for (int i = 0; i < regionCount; i++) { @@ -461,7 +461,7 @@ namespace Ryujinx.Graphics.Gpu.Image /// The texture to synchronize dependents of public void SynchronizeDependents(Texture texture) { - EvaluateRelevantHandles(texture, (baseHandle, regionCount, split) => + EvaluateRelevantHandles(texture, (baseHandle, regionCount, _) => { for (int i = 0; i < regionCount; i++) { @@ -694,7 +694,7 @@ namespace Ryujinx.Graphics.Gpu.Image ClearIncompatibleOverlaps(texture); - EvaluateRelevantHandles(texture, (baseHandle, regionCount, split) => + EvaluateRelevantHandles(texture, (baseHandle, regionCount, _) => { for (int i = 0; i < regionCount; i++) { @@ -716,7 +716,7 @@ namespace Ryujinx.Graphics.Gpu.Image ClearIncompatibleOverlaps(texture); - EvaluateRelevantHandles(texture, (baseHandle, regionCount, split) => + EvaluateRelevantHandles(texture, (baseHandle, regionCount, _) => { for (int i = 0; i < regionCount; i++) { @@ -1441,8 +1441,8 @@ namespace Ryujinx.Graphics.Gpu.Image var targetRange = new List<(int BaseHandle, int RegionCount)>(); var otherRange = new List<(int BaseHandle, int RegionCount)>(); - EvaluateRelevantHandles(firstLayer, firstLevel, other.Info.GetSlices(), other.Info.Levels, (baseHandle, regionCount, split) => targetRange.Add((baseHandle, regionCount))); - otherGroup.EvaluateRelevantHandles(other, (baseHandle, regionCount, split) => otherRange.Add((baseHandle, regionCount))); + EvaluateRelevantHandles(firstLayer, firstLevel, other.Info.GetSlices(), other.Info.Levels, (baseHandle, regionCount, _) => targetRange.Add((baseHandle, regionCount))); + otherGroup.EvaluateRelevantHandles(other, (baseHandle, regionCount, _) => otherRange.Add((baseHandle, regionCount))); int targetIndex = 0; int otherIndex = 0; diff --git a/src/Ryujinx.Graphics.Gpu/Synchronization/SynchronizationManager.cs b/src/Ryujinx.Graphics.Gpu/Synchronization/SynchronizationManager.cs index 1042a4db8..f36e74107 100644 --- a/src/Ryujinx.Graphics.Gpu/Synchronization/SynchronizationManager.cs +++ b/src/Ryujinx.Graphics.Gpu/Synchronization/SynchronizationManager.cs @@ -87,7 +87,7 @@ namespace Ryujinx.Graphics.Gpu.Synchronization } using ManualResetEvent waitEvent = new(false); - var info = _syncpoints[id].RegisterCallback(threshold, (x) => waitEvent.Set()); + var info = _syncpoints[id].RegisterCallback(threshold, (_) => waitEvent.Set()); if (info == null) { diff --git a/src/Ryujinx.Graphics.Shader/CodeGen/Glsl/GlslGenerator.cs b/src/Ryujinx.Graphics.Shader/CodeGen/Glsl/GlslGenerator.cs index 469c4f0a2..1e85aaf6d 100644 --- a/src/Ryujinx.Graphics.Shader/CodeGen/Glsl/GlslGenerator.cs +++ b/src/Ryujinx.Graphics.Shader/CodeGen/Glsl/GlslGenerator.cs @@ -76,7 +76,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl { AstBlockVisitor visitor = new(block); - visitor.BlockEntered += (sender, e) => + visitor.BlockEntered += (_, e) => { switch (e.Block.Type) { @@ -103,7 +103,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl context.EnterScope(); }; - visitor.BlockLeft += (sender, e) => + visitor.BlockLeft += (_, e) => { context.LeaveScope(); diff --git a/src/Ryujinx.Graphics.Shader/CodeGen/Spirv/SpirvGenerator.cs b/src/Ryujinx.Graphics.Shader/CodeGen/Spirv/SpirvGenerator.cs index 105812ebf..8082d736d 100644 --- a/src/Ryujinx.Graphics.Shader/CodeGen/Spirv/SpirvGenerator.cs +++ b/src/Ryujinx.Graphics.Shader/CodeGen/Spirv/SpirvGenerator.cs @@ -311,7 +311,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Spirv context.LoopTargets = loopTargets; - visitor.BlockEntered += (sender, e) => + visitor.BlockEntered += (_, e) => { AstBlock mergeBlock = e.Block.Parent; @@ -347,7 +347,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Spirv context.EnterBlock(e.Block); }; - visitor.BlockLeft += (sender, e) => + visitor.BlockLeft += (_, e) => { if (e.Block.Parent != null) { diff --git a/src/Ryujinx.Graphics.Shader/Translation/FunctionMatch.cs b/src/Ryujinx.Graphics.Shader/Translation/FunctionMatch.cs index a0d708ba3..ba1a3e1ab 100644 --- a/src/Ryujinx.Graphics.Shader/Translation/FunctionMatch.cs +++ b/src/Ryujinx.Graphics.Shader/Translation/FunctionMatch.cs @@ -746,7 +746,7 @@ namespace Ryujinx.Graphics.Shader.Translation private static PatternTreeNode Label() { - return new(InstName.Invalid, (op) => true, type: TreeNodeType.Label); + return new(InstName.Invalid, (_) => true, type: TreeNodeType.Label); } private static PatternTreeNode Lop(bool negB, LogicOp logicOp) diff --git a/src/Ryujinx.Graphics.Vulkan/PipelineLayoutCache.cs b/src/Ryujinx.Graphics.Vulkan/PipelineLayoutCache.cs index 5d0cada96..1132cba03 100644 --- a/src/Ryujinx.Graphics.Vulkan/PipelineLayoutCache.cs +++ b/src/Ryujinx.Graphics.Vulkan/PipelineLayoutCache.cs @@ -83,7 +83,7 @@ namespace Ryujinx.Graphics.Vulkan { var key = new PlceKey(setDescriptors, usePushDescriptors); - return _plces.GetOrAdd(key, newKey => new PipelineLayoutCacheEntry(gd, device, setDescriptors, usePushDescriptors)); + return _plces.GetOrAdd(key, _ => new PipelineLayoutCacheEntry(gd, device, setDescriptors, usePushDescriptors)); } protected virtual void Dispose(bool disposing) diff --git a/src/Ryujinx.HLE/FileSystem/VirtualFileSystem.cs b/src/Ryujinx.HLE/FileSystem/VirtualFileSystem.cs index 1103329c1..9be9ced99 100644 --- a/src/Ryujinx.HLE/FileSystem/VirtualFileSystem.cs +++ b/src/Ryujinx.HLE/FileSystem/VirtualFileSystem.cs @@ -63,7 +63,7 @@ namespace Ryujinx.HLE.FileSystem { var romfsStream = new FileStream(fileName, FileMode.Open, FileAccess.Read); - _romFsByPid.AddOrUpdate(pid, romfsStream, (pid, oldStream) => + _romFsByPid.AddOrUpdate(pid, romfsStream, (_, oldStream) => { oldStream.Close(); @@ -73,7 +73,7 @@ namespace Ryujinx.HLE.FileSystem public void SetRomFs(ulong pid, Stream romfsStream) { - _romFsByPid.AddOrUpdate(pid, romfsStream, (pid, oldStream) => + _romFsByPid.AddOrUpdate(pid, romfsStream, (_, oldStream) => { oldStream.Close(); diff --git a/src/Ryujinx.HLE/HOS/Services/Account/Acc/AccountManager.cs b/src/Ryujinx.HLE/HOS/Services/Account/Acc/AccountManager.cs index 6a3ce9a36..0fa6119d3 100644 --- a/src/Ryujinx.HLE/HOS/Services/Account/Acc/AccountManager.cs +++ b/src/Ryujinx.HLE/HOS/Services/Account/Acc/AccountManager.cs @@ -69,7 +69,7 @@ namespace Ryujinx.HLE.HOS.Services.Account.Acc UserProfile profile = new(userId, name, image); - _profiles.AddOrUpdate(userId.ToString(), profile, (key, old) => profile); + _profiles.AddOrUpdate(userId.ToString(), profile, (_, _) => profile); _accountSaveDataManager.Save(_profiles); } diff --git a/src/Ryujinx.HLE/HOS/Services/Account/Acc/AccountSaveDataManager.cs b/src/Ryujinx.HLE/HOS/Services/Account/Acc/AccountSaveDataManager.cs index e3f7d56b7..388ad6036 100644 --- a/src/Ryujinx.HLE/HOS/Services/Account/Acc/AccountSaveDataManager.cs +++ b/src/Ryujinx.HLE/HOS/Services/Account/Acc/AccountSaveDataManager.cs @@ -32,7 +32,7 @@ namespace Ryujinx.HLE.HOS.Services.Account.Acc { UserProfile addedProfile = new(new UserId(profile.UserId), profile.Name, profile.Image, profile.LastModifiedTimestamp); - profiles.AddOrUpdate(profile.UserId, addedProfile, (key, old) => addedProfile); + profiles.AddOrUpdate(profile.UserId, addedProfile, (_, _) => addedProfile); } LastOpened = new UserId(profilesJson.LastOpened); diff --git a/src/Ryujinx.HLE/HOS/Services/Ldn/UserServiceCreator/LdnRyu/Proxy/P2pProxyServer.cs b/src/Ryujinx.HLE/HOS/Services/Ldn/UserServiceCreator/LdnRyu/Proxy/P2pProxyServer.cs index e78ad1fd0..5f4b69e42 100644 --- a/src/Ryujinx.HLE/HOS/Services/Ldn/UserServiceCreator/LdnRyu/Proxy/P2pProxyServer.cs +++ b/src/Ryujinx.HLE/HOS/Services/Ldn/UserServiceCreator/LdnRyu/Proxy/P2pProxyServer.cs @@ -153,7 +153,7 @@ namespace Ryujinx.HLE.HOS.Services.Ldn.UserServiceCreator.LdnRyu.Proxy if (_publicPort != 0) { - _ = Task.Delay(PortLeaseRenew * 1000, _disposedCancellation.Token).ContinueWith((task) => Task.Run(RefreshLease)); + _ = Task.Delay(PortLeaseRenew * 1000, _disposedCancellation.Token).ContinueWith((_) => Task.Run(RefreshLease)); } _natDevice = device; @@ -257,7 +257,7 @@ namespace Ryujinx.HLE.HOS.Services.Ldn.UserServiceCreator.LdnRyu.Proxy } - _ = Task.Delay(PortLeaseRenew, _disposedCancellation.Token).ContinueWith((task) => Task.Run(RefreshLease)); + _ = Task.Delay(PortLeaseRenew, _disposedCancellation.Token).ContinueWith((_) => Task.Run(RefreshLease)); } public bool TryRegisterUser(P2pProxySession session, ExternalProxyConfig config) @@ -367,7 +367,7 @@ namespace Ryujinx.HLE.HOS.Services.Ldn.UserServiceCreator.LdnRyu.Proxy Task delete = _natDevice?.DeletePortMapAsync(new Mapping(Protocol.Tcp, PrivatePort, _publicPort, 60, "Ryujinx Local Multiplayer")); // Just absorb any exceptions. - delete?.ContinueWith((task) => { }); + delete?.ContinueWith((_) => { }); } catch (Exception) { diff --git a/src/Ryujinx.HLE/HOS/Services/SurfaceFlinger/SurfaceFlinger.cs b/src/Ryujinx.HLE/HOS/Services/SurfaceFlinger/SurfaceFlinger.cs index eaa3a69f7..37cc77000 100644 --- a/src/Ryujinx.HLE/HOS/Services/SurfaceFlinger/SurfaceFlinger.cs +++ b/src/Ryujinx.HLE/HOS/Services/SurfaceFlinger/SurfaceFlinger.cs @@ -475,7 +475,7 @@ namespace Ryujinx.HLE.HOS.Services.SurfaceFlinger } else { - item.Fence.RegisterCallback(_device.Gpu, (x) => + item.Fence.RegisterCallback(_device.Gpu, (_) => { _device.Gpu.Window.SignalFrameReady(); _device.Gpu.GPFifo.Interrupt(); diff --git a/src/Ryujinx.Memory/Tracking/SmartMultiRegionHandle.cs b/src/Ryujinx.Memory/Tracking/SmartMultiRegionHandle.cs index 57129a182..8ea687f79 100644 --- a/src/Ryujinx.Memory/Tracking/SmartMultiRegionHandle.cs +++ b/src/Ryujinx.Memory/Tracking/SmartMultiRegionHandle.cs @@ -60,7 +60,7 @@ namespace Ryujinx.Memory.Tracking { if (handle != null) { - handle?.RegisterAction((address, size) => action(handle.Address, handle.Size)); + handle?.RegisterAction((_, _) => action(handle.Address, handle.Size)); } } } @@ -71,7 +71,7 @@ namespace Ryujinx.Memory.Tracking { if (handle != null) { - handle?.RegisterPreciseAction((address, size, write) => action(handle.Address, handle.Size, write)); + handle?.RegisterPreciseAction((_, _, write) => action(handle.Address, handle.Size, write)); } } } diff --git a/src/Ryujinx.Tests.Memory/MultiRegionTrackingTests.cs b/src/Ryujinx.Tests.Memory/MultiRegionTrackingTests.cs index c9ac4dc94..206a20984 100644 --- a/src/Ryujinx.Tests.Memory/MultiRegionTrackingTests.cs +++ b/src/Ryujinx.Tests.Memory/MultiRegionTrackingTests.cs @@ -54,7 +54,7 @@ namespace Ryujinx.Tests.Memory int regionCount = 0; ulong lastAddress = startAddress; - handle.QueryModified(startAddress, size, (address, range) => + handle.QueryModified(startAddress, size, (address, _) => { Assert.IsTrue(addressPredicate(address)); // Written pages must be even. Assert.GreaterOrEqual(address, lastAddress); // Must be signalled in ascending order, regardless of write order. @@ -70,7 +70,7 @@ namespace Ryujinx.Tests.Memory int regionCount = 0; ulong lastAddress = startAddress; - handle.QueryModified(startAddress, size, (address, range) => + handle.QueryModified(startAddress, size, (address, _) => { Assert.IsTrue(addressPredicate(address)); // Written pages must be even. Assert.GreaterOrEqual(address, lastAddress); // Must be signalled in ascending order, regardless of write order. @@ -89,7 +89,7 @@ namespace Ryujinx.Tests.Memory RandomOrder(random, Enumerable.Range(0, pageCount).ToList(), (i) => { ulong resultAddress = ulong.MaxValue; - handle.QueryModified((ulong)i * PageSize + address, PageSize, (address, range) => + handle.QueryModified((ulong)i * PageSize + address, PageSize, (address, _) => { resultAddress = address; }); @@ -166,7 +166,7 @@ namespace Ryujinx.Tests.Memory foreach (int index in odd) { - handle.QueryModified((ulong)index * PageSize, PageSize, (address, range) => + handle.QueryModified((ulong)index * PageSize, PageSize, (_, _) => { oddRegionCount++; }, 1); @@ -186,7 +186,7 @@ namespace Ryujinx.Tests.Memory oddRegionCount = 0; - handle.QueryModified(0, PageSize * PageCount, (address, range) => { oddRegionCount++; }, 1); + handle.QueryModified(0, PageSize * PageCount, (_, _) => { oddRegionCount++; }, 1); Assert.AreEqual(oddRegionCount, 0); // Sequence number has not changed, so found no dirty subregions. @@ -214,7 +214,7 @@ namespace Ryujinx.Tests.Memory for (int i = 0; i < regionSizes.Length; i++) { int region = regionSizes[i]; - handle.QueryModified(address, (ulong)(PageSize * region), (address, size) => { }); + handle.QueryModified(address, (ulong)(PageSize * region), (_, _) => { }); // There should be a gap between regions, // So that they don't combine and we can see the full effects. @@ -222,7 +222,7 @@ namespace Ryujinx.Tests.Memory } // Clear modified. - handle.QueryModified((address, size) => { }); + handle.QueryModified((_, _) => { }); // Trigger each region with a 1 byte write. address = 0; diff --git a/src/Ryujinx.Tests.Memory/TrackingTests.cs b/src/Ryujinx.Tests.Memory/TrackingTests.cs index 675179ede..a7c1c719a 100644 --- a/src/Ryujinx.Tests.Memory/TrackingTests.cs +++ b/src/Ryujinx.Tests.Memory/TrackingTests.cs @@ -308,7 +308,7 @@ namespace Ryujinx.Tests.Memory void RegisterReadAction() { registeredCount++; - handle.RegisterAction((address, size) => + handle.RegisterAction((_, _) => { isRegistered = false; Interlocked.Increment(ref triggeredCount); diff --git a/src/Ryujinx.UI.Common/Configuration/ConfigurationState.cs b/src/Ryujinx.UI.Common/Configuration/ConfigurationState.cs index 5200a072b..25320e387 100644 --- a/src/Ryujinx.UI.Common/Configuration/ConfigurationState.cs +++ b/src/Ryujinx.UI.Common/Configuration/ConfigurationState.cs @@ -219,7 +219,7 @@ namespace Ryujinx.UI.Common.Configuration IsAscendingOrder = new ReactiveObject(); LanguageCode = new ReactiveObject(); ShowConsole = new ReactiveObject(); - ShowConsole.Event += static (s, e) => { ConsoleHelper.SetConsoleWindowState(e.NewValue); }; + ShowConsole.Event += static (_, e) => { ConsoleHelper.SetConsoleWindowState(e.NewValue); }; } } @@ -295,7 +295,7 @@ namespace Ryujinx.UI.Common.Configuration EnableFsAccessLog = new ReactiveObject(); FilteredClasses = new ReactiveObject(); EnableFileLog = new ReactiveObject(); - EnableFileLog.Event += static (sender, e) => LogValueChange(e, nameof(EnableFileLog)); + EnableFileLog.Event += static (_, e) => LogValueChange(e, nameof(EnableFileLog)); GraphicsDebugLevel = new ReactiveObject(); } } @@ -401,18 +401,18 @@ namespace Ryujinx.UI.Common.Configuration Region = new ReactiveObject(); TimeZone = new ReactiveObject(); SystemTimeOffset = new ReactiveObject(); - SystemTimeOffset.Event += static (sender, e) => LogValueChange(e, nameof(SystemTimeOffset)); + SystemTimeOffset.Event += static (_, e) => LogValueChange(e, nameof(SystemTimeOffset)); MatchSystemTime = new ReactiveObject(); - MatchSystemTime.Event += static (sender, e) => LogValueChange(e, nameof(MatchSystemTime)); + MatchSystemTime.Event += static (_, e) => LogValueChange(e, nameof(MatchSystemTime)); EnableDockedMode = new ReactiveObject(); - EnableDockedMode.Event += static (sender, e) => LogValueChange(e, nameof(EnableDockedMode)); + EnableDockedMode.Event += static (_, e) => LogValueChange(e, nameof(EnableDockedMode)); EnablePtc = new ReactiveObject(); - EnablePtc.Event += static (sender, e) => LogValueChange(e, nameof(EnablePtc)); + EnablePtc.Event += static (_, e) => LogValueChange(e, nameof(EnablePtc)); EnableLowPowerPtc = new ReactiveObject(); - EnableLowPowerPtc.Event += static (sender, e) => LogValueChange(e, nameof(EnableLowPowerPtc)); + EnableLowPowerPtc.Event += static (_, e) => LogValueChange(e, nameof(EnableLowPowerPtc)); TickScalar = new ReactiveObject(); - TickScalar.Event += static (sender, e) => LogValueChange(e, nameof(TickScalar)); - TickScalar.Event += static (sender, e) => + TickScalar.Event += static (_, e) => LogValueChange(e, nameof(TickScalar)); + TickScalar.Event += static (_, e) => { if (Switch.Shared is null) return; @@ -420,23 +420,23 @@ namespace Ryujinx.UI.Common.Configuration Switch.Shared.Configuration.TickScalar = e.NewValue; }; EnableInternetAccess = new ReactiveObject(); - EnableInternetAccess.Event += static (sender, e) => LogValueChange(e, nameof(EnableInternetAccess)); + EnableInternetAccess.Event += static (_, e) => LogValueChange(e, nameof(EnableInternetAccess)); EnableFsIntegrityChecks = new ReactiveObject(); - EnableFsIntegrityChecks.Event += static (sender, e) => LogValueChange(e, nameof(EnableFsIntegrityChecks)); + EnableFsIntegrityChecks.Event += static (_, e) => LogValueChange(e, nameof(EnableFsIntegrityChecks)); FsGlobalAccessLogMode = new ReactiveObject(); - FsGlobalAccessLogMode.Event += static (sender, e) => LogValueChange(e, nameof(FsGlobalAccessLogMode)); + FsGlobalAccessLogMode.Event += static (_, e) => LogValueChange(e, nameof(FsGlobalAccessLogMode)); AudioBackend = new ReactiveObject(); - AudioBackend.Event += static (sender, e) => LogValueChange(e, nameof(AudioBackend)); + AudioBackend.Event += static (_, e) => LogValueChange(e, nameof(AudioBackend)); MemoryManagerMode = new ReactiveObject(); - MemoryManagerMode.Event += static (sender, e) => LogValueChange(e, nameof(MemoryManagerMode)); + MemoryManagerMode.Event += static (_, e) => LogValueChange(e, nameof(MemoryManagerMode)); DramSize = new ReactiveObject(); - DramSize.Event += static (sender, e) => LogValueChange(e, nameof(DramSize)); + DramSize.Event += static (_, e) => LogValueChange(e, nameof(DramSize)); IgnoreMissingServices = new ReactiveObject(); - IgnoreMissingServices.Event += static (sender, e) => LogValueChange(e, nameof(IgnoreMissingServices)); + IgnoreMissingServices.Event += static (_, e) => LogValueChange(e, nameof(IgnoreMissingServices)); AudioVolume = new ReactiveObject(); - AudioVolume.Event += static (sender, e) => LogValueChange(e, nameof(AudioVolume)); + AudioVolume.Event += static (_, e) => LogValueChange(e, nameof(AudioVolume)); UseHypervisor = new ReactiveObject(); - UseHypervisor.Event += static (sender, e) => LogValueChange(e, nameof(UseHypervisor)); + UseHypervisor.Event += static (_, e) => LogValueChange(e, nameof(UseHypervisor)); } } @@ -574,40 +574,40 @@ namespace Ryujinx.UI.Common.Configuration public GraphicsSection() { BackendThreading = new ReactiveObject(); - BackendThreading.Event += static (sender, e) => LogValueChange(e, nameof(BackendThreading)); + BackendThreading.Event += static (_, e) => LogValueChange(e, nameof(BackendThreading)); ResScale = new ReactiveObject(); - ResScale.Event += static (sender, e) => LogValueChange(e, nameof(ResScale)); + ResScale.Event += static (_, e) => LogValueChange(e, nameof(ResScale)); ResScaleCustom = new ReactiveObject(); - ResScaleCustom.Event += static (sender, e) => LogValueChange(e, nameof(ResScaleCustom)); + ResScaleCustom.Event += static (_, e) => LogValueChange(e, nameof(ResScaleCustom)); MaxAnisotropy = new ReactiveObject(); - MaxAnisotropy.Event += static (sender, e) => LogValueChange(e, nameof(MaxAnisotropy)); + MaxAnisotropy.Event += static (_, e) => LogValueChange(e, nameof(MaxAnisotropy)); AspectRatio = new ReactiveObject(); - AspectRatio.Event += static (sender, e) => LogValueChange(e, nameof(AspectRatio)); + AspectRatio.Event += static (_, e) => LogValueChange(e, nameof(AspectRatio)); ShadersDumpPath = new ReactiveObject(); VSyncMode = new ReactiveObject(); - VSyncMode.Event += static (sender, e) => LogValueChange(e, nameof(VSyncMode)); + VSyncMode.Event += static (_, e) => LogValueChange(e, nameof(VSyncMode)); EnableCustomVSyncInterval = new ReactiveObject(); - EnableCustomVSyncInterval.Event += static (sender, e) => LogValueChange(e, nameof(EnableCustomVSyncInterval)); + EnableCustomVSyncInterval.Event += static (_, e) => LogValueChange(e, nameof(EnableCustomVSyncInterval)); CustomVSyncInterval = new ReactiveObject(); - CustomVSyncInterval.Event += static (sender, e) => LogValueChange(e, nameof(CustomVSyncInterval)); + CustomVSyncInterval.Event += static (_, e) => LogValueChange(e, nameof(CustomVSyncInterval)); EnableShaderCache = new ReactiveObject(); - EnableShaderCache.Event += static (sender, e) => LogValueChange(e, nameof(EnableShaderCache)); + EnableShaderCache.Event += static (_, e) => LogValueChange(e, nameof(EnableShaderCache)); EnableTextureRecompression = new ReactiveObject(); - EnableTextureRecompression.Event += static (sender, e) => LogValueChange(e, nameof(EnableTextureRecompression)); + EnableTextureRecompression.Event += static (_, e) => LogValueChange(e, nameof(EnableTextureRecompression)); GraphicsBackend = new ReactiveObject(); - GraphicsBackend.Event += static (sender, e) => LogValueChange(e, nameof(GraphicsBackend)); + GraphicsBackend.Event += static (_, e) => LogValueChange(e, nameof(GraphicsBackend)); PreferredGpu = new ReactiveObject(); - PreferredGpu.Event += static (sender, e) => LogValueChange(e, nameof(PreferredGpu)); + PreferredGpu.Event += static (_, e) => LogValueChange(e, nameof(PreferredGpu)); EnableMacroHLE = new ReactiveObject(); - EnableMacroHLE.Event += static (sender, e) => LogValueChange(e, nameof(EnableMacroHLE)); + EnableMacroHLE.Event += static (_, e) => LogValueChange(e, nameof(EnableMacroHLE)); EnableColorSpacePassthrough = new ReactiveObject(); - EnableColorSpacePassthrough.Event += static (sender, e) => LogValueChange(e, nameof(EnableColorSpacePassthrough)); + EnableColorSpacePassthrough.Event += static (_, e) => LogValueChange(e, nameof(EnableColorSpacePassthrough)); AntiAliasing = new ReactiveObject(); - AntiAliasing.Event += static (sender, e) => LogValueChange(e, nameof(AntiAliasing)); + AntiAliasing.Event += static (_, e) => LogValueChange(e, nameof(AntiAliasing)); ScalingFilter = new ReactiveObject(); - ScalingFilter.Event += static (sender, e) => LogValueChange(e, nameof(ScalingFilter)); + ScalingFilter.Event += static (_, e) => LogValueChange(e, nameof(ScalingFilter)); ScalingFilterLevel = new ReactiveObject(); - ScalingFilterLevel.Event += static (sender, e) => LogValueChange(e, nameof(ScalingFilterLevel)); + ScalingFilterLevel.Event += static (_, e) => LogValueChange(e, nameof(ScalingFilterLevel)); } } diff --git a/src/Ryujinx/Common/Locale/LocaleExtension.cs b/src/Ryujinx/Common/Locale/LocaleExtension.cs index b5964aa85..8efe99407 100644 --- a/src/Ryujinx/Common/Locale/LocaleExtension.cs +++ b/src/Ryujinx/Common/Locale/LocaleExtension.cs @@ -23,7 +23,7 @@ namespace Ryujinx.Ava.Common.Locale builder .Property(new ClrPropertyInfo("Item", - obj => (LocaleManager.Instance[keyToUse]), + _ => (LocaleManager.Instance[keyToUse]), null, typeof(string)), (weakRef, iPropInfo) => { diff --git a/src/Ryujinx/Headless/HeadlessRyujinx.Init.cs b/src/Ryujinx/Headless/HeadlessRyujinx.Init.cs index dcc403d68..5f6df78b4 100644 --- a/src/Ryujinx/Headless/HeadlessRyujinx.Init.cs +++ b/src/Ryujinx/Headless/HeadlessRyujinx.Init.cs @@ -41,7 +41,7 @@ namespace Ryujinx.Headless Task.Run(Updater.CleanupUpdate); // Hook unhandled exception and process exit events. - AppDomain.CurrentDomain.UnhandledException += (sender, e) + AppDomain.CurrentDomain.UnhandledException += (_, e) => Program.ProcessUnhandledException(e.ExceptionObject as Exception, e.IsTerminating); AppDomain.CurrentDomain.ProcessExit += (_, _) => Program.Exit(); @@ -307,7 +307,7 @@ namespace Ryujinx.Headless return new VulkanRenderer( api, - (instance, vk) => new SurfaceKHR((ulong)(vulkanWindow.CreateWindowSurface(instance.Handle))), + (instance, _) => new SurfaceKHR((ulong)(vulkanWindow.CreateWindowSurface(instance.Handle))), vulkanWindow.GetRequiredInstanceExtensions, preferredGpuId); } diff --git a/src/Ryujinx/Headless/WindowBase.cs b/src/Ryujinx/Headless/WindowBase.cs index 9e27837d6..e23ad1ca4 100644 --- a/src/Ryujinx/Headless/WindowBase.cs +++ b/src/Ryujinx/Headless/WindowBase.cs @@ -396,7 +396,7 @@ namespace Ryujinx.Headless // TODO: This should be removed when the issue with the GateThread is resolved. - ThreadPool.QueueUserWorkItem(state => { }); + ThreadPool.QueueUserWorkItem(_ => { }); Thread.Sleep(300); } } diff --git a/src/Ryujinx/Modules/Updater/Updater.cs b/src/Ryujinx/Modules/Updater/Updater.cs index a8b0db9ef..ff9154eed 100644 --- a/src/Ryujinx/Modules/Updater/Updater.cs +++ b/src/Ryujinx/Modules/Updater/Updater.cs @@ -257,7 +257,7 @@ namespace Ryujinx.Modules XamlRoot = parent, }; - taskDialog.Opened += (s, e) => + taskDialog.Opened += (_, _) => { if (_buildSize >= 0) { diff --git a/src/Ryujinx/Program.cs b/src/Ryujinx/Program.cs index 6a453b441..623a3b767 100644 --- a/src/Ryujinx/Program.cs +++ b/src/Ryujinx/Program.cs @@ -100,11 +100,11 @@ namespace Ryujinx.Ava Console.Title = $"Ryujinx Console {Version}"; // Hook unhandled exception and process exit events. - AppDomain.CurrentDomain.UnhandledException += (sender, e) + AppDomain.CurrentDomain.UnhandledException += (_, e) => ProcessUnhandledException(e.ExceptionObject as Exception, e.IsTerminating); - TaskScheduler.UnobservedTaskException += (sender, e) + TaskScheduler.UnobservedTaskException += (_, e) => ProcessUnhandledException(e.Exception, false); - AppDomain.CurrentDomain.ProcessExit += (sender, e) => Exit(); + AppDomain.CurrentDomain.ProcessExit += (_, _) => Exit(); // Setup base data directory. AppDataManager.Initialize(CommandLineState.BaseDirPathArg); diff --git a/src/Ryujinx/UI/Applet/SwkbdAppletDialog.axaml.cs b/src/Ryujinx/UI/Applet/SwkbdAppletDialog.axaml.cs index 5d805381c..25e92570f 100644 --- a/src/Ryujinx/UI/Applet/SwkbdAppletDialog.axaml.cs +++ b/src/Ryujinx/UI/Applet/SwkbdAppletDialog.axaml.cs @@ -116,7 +116,7 @@ namespace Ryujinx.Ava.UI.Controls { Error.IsVisible = false; - _checkLength = length => true; + _checkLength = _ => true; } else if (_inputMin > 0 && _inputMax == int.MaxValue) { diff --git a/src/Ryujinx/UI/Controls/NavigationDialogHost.axaml.cs b/src/Ryujinx/UI/Controls/NavigationDialogHost.axaml.cs index be7b6d75f..1ca1615d5 100644 --- a/src/Ryujinx/UI/Controls/NavigationDialogHost.axaml.cs +++ b/src/Ryujinx/UI/Controls/NavigationDialogHost.axaml.cs @@ -84,7 +84,7 @@ namespace Ryujinx.Ava.UI.Controls Padding = new Thickness(0), }; - contentDialog.Closed += (sender, args) => + contentDialog.Closed += (_, _) => { content.ViewModel.Dispose(); }; diff --git a/src/Ryujinx/UI/Helpers/NotificationHelper.cs b/src/Ryujinx/UI/Helpers/NotificationHelper.cs index 74029a4b1..eab075806 100644 --- a/src/Ryujinx/UI/Helpers/NotificationHelper.cs +++ b/src/Ryujinx/UI/Helpers/NotificationHelper.cs @@ -46,7 +46,7 @@ namespace Ryujinx.Ava.UI.Helpers _ = maybeAsyncWorkQueue.Value; }; - host.Closing += (sender, args) => + host.Closing += (_, _) => { if (maybeAsyncWorkQueue.IsValueCreated) { diff --git a/src/Ryujinx/UI/Renderer/EmbeddedWindow.cs b/src/Ryujinx/UI/Renderer/EmbeddedWindow.cs index 256f723b2..3f0f58a74 100644 --- a/src/Ryujinx/UI/Renderer/EmbeddedWindow.cs +++ b/src/Ryujinx/UI/Renderer/EmbeddedWindow.cs @@ -192,7 +192,7 @@ namespace Ryujinx.Ava.UI.Renderer metalLayer.SendMessage("setContentsScale:", Program.DesktopScaleFactor); // Ensure the scale factor is up to date. - _updateBoundsCallback = rect => + _updateBoundsCallback = _ => { metalLayer.SendMessage("setContentsScale:", Program.DesktopScaleFactor); }; diff --git a/src/Ryujinx/UI/Views/Input/ControllerInputView.axaml.cs b/src/Ryujinx/UI/Views/Input/ControllerInputView.axaml.cs index 912dd45fe..605a51f8a 100644 --- a/src/Ryujinx/UI/Views/Input/ControllerInputView.axaml.cs +++ b/src/Ryujinx/UI/Views/Input/ControllerInputView.axaml.cs @@ -124,7 +124,7 @@ namespace Ryujinx.Ava.UI.Views.Input IKeyboard keyboard = (IKeyboard)viewModel.ParentModel.AvaloniaKeyboardDriver.GetGamepad("0"); // Open Avalonia keyboard for cancel operations. IButtonAssigner assigner = CreateButtonAssigner(isStick); - _currentAssigner.ButtonAssigned += (sender, e) => + _currentAssigner.ButtonAssigned += (_, e) => { if (e.ButtonValue.HasValue) { diff --git a/src/Ryujinx/UI/Views/Input/KeyboardInputView.axaml.cs b/src/Ryujinx/UI/Views/Input/KeyboardInputView.axaml.cs index 384e09df3..acc1ebe4d 100644 --- a/src/Ryujinx/UI/Views/Input/KeyboardInputView.axaml.cs +++ b/src/Ryujinx/UI/Views/Input/KeyboardInputView.axaml.cs @@ -65,7 +65,7 @@ namespace Ryujinx.Ava.UI.Views.Input IKeyboard keyboard = (IKeyboard)viewModel.ParentModel.AvaloniaKeyboardDriver.GetGamepad("0"); // Open Avalonia keyboard for cancel operations. IButtonAssigner assigner = CreateButtonAssigner(); - _currentAssigner.ButtonAssigned += (sender, e) => + _currentAssigner.ButtonAssigned += (_, e) => { if (e.ButtonValue.HasValue) { diff --git a/src/Ryujinx/UI/Views/Input/MotionInputView.axaml.cs b/src/Ryujinx/UI/Views/Input/MotionInputView.axaml.cs index 2304364b6..3e12d9de8 100644 --- a/src/Ryujinx/UI/Views/Input/MotionInputView.axaml.cs +++ b/src/Ryujinx/UI/Views/Input/MotionInputView.axaml.cs @@ -47,7 +47,7 @@ namespace Ryujinx.Ava.UI.Views.Input CloseButtonText = LocaleManager.Instance[LocaleKeys.ControllerSettingsClose], Content = content, }; - contentDialog.PrimaryButtonClick += (sender, args) => + contentDialog.PrimaryButtonClick += (_, _) => { var config = viewModel.Config; config.Slot = content._viewModel.Slot; diff --git a/src/Ryujinx/UI/Views/Input/RumbleInputView.axaml.cs b/src/Ryujinx/UI/Views/Input/RumbleInputView.axaml.cs index 58a4b416b..82872efa1 100644 --- a/src/Ryujinx/UI/Views/Input/RumbleInputView.axaml.cs +++ b/src/Ryujinx/UI/Views/Input/RumbleInputView.axaml.cs @@ -43,7 +43,7 @@ namespace Ryujinx.Ava.UI.Views.Input Content = content, }; - contentDialog.PrimaryButtonClick += (sender, args) => + contentDialog.PrimaryButtonClick += (_, _) => { var config = viewModel.Config; config.StrongRumble = content._viewModel.StrongRumble; diff --git a/src/Ryujinx/UI/Views/Settings/SettingsHotkeysView.axaml.cs b/src/Ryujinx/UI/Views/Settings/SettingsHotkeysView.axaml.cs index 86fcbe749..084160664 100644 --- a/src/Ryujinx/UI/Views/Settings/SettingsHotkeysView.axaml.cs +++ b/src/Ryujinx/UI/Views/Settings/SettingsHotkeysView.axaml.cs @@ -62,7 +62,7 @@ namespace Ryujinx.Ava.UI.Views.Settings var keyboard = (IKeyboard)_avaloniaKeyboardDriver.GetGamepad("0"); IButtonAssigner assigner = new KeyboardKeyAssigner(keyboard); - _currentAssigner.ButtonAssigned += (sender, e) => + _currentAssigner.ButtonAssigned += (_, e) => { if (e.ButtonValue.HasValue) { diff --git a/src/Ryujinx/UI/Views/User/UserEditorView.axaml.cs b/src/Ryujinx/UI/Views/User/UserEditorView.axaml.cs index 588fa471e..564c9157b 100644 --- a/src/Ryujinx/UI/Views/User/UserEditorView.axaml.cs +++ b/src/Ryujinx/UI/Views/User/UserEditorView.axaml.cs @@ -26,7 +26,7 @@ namespace Ryujinx.Ava.UI.Views.User public UserEditorView() { InitializeComponent(); - AddHandler(Frame.NavigatedToEvent, (s, e) => + AddHandler(Frame.NavigatedToEvent, (_, e) => { NavigatedTo(e); }, RoutingStrategies.Direct); diff --git a/src/Ryujinx/UI/Views/User/UserFirmwareAvatarSelectorView.axaml.cs b/src/Ryujinx/UI/Views/User/UserFirmwareAvatarSelectorView.axaml.cs index 064b5e908..3bb49d725 100644 --- a/src/Ryujinx/UI/Views/User/UserFirmwareAvatarSelectorView.axaml.cs +++ b/src/Ryujinx/UI/Views/User/UserFirmwareAvatarSelectorView.axaml.cs @@ -29,7 +29,7 @@ namespace Ryujinx.Ava.UI.Views.User { InitializeComponent(); - AddHandler(Frame.NavigatedToEvent, (s, e) => + AddHandler(Frame.NavigatedToEvent, (_, e) => { NavigatedTo(e); }, RoutingStrategies.Direct); diff --git a/src/Ryujinx/UI/Views/User/UserProfileImageSelectorView.axaml.cs b/src/Ryujinx/UI/Views/User/UserProfileImageSelectorView.axaml.cs index 43f3d234a..11b24525d 100644 --- a/src/Ryujinx/UI/Views/User/UserProfileImageSelectorView.axaml.cs +++ b/src/Ryujinx/UI/Views/User/UserProfileImageSelectorView.axaml.cs @@ -26,7 +26,7 @@ namespace Ryujinx.Ava.UI.Views.User public UserProfileImageSelectorView() { InitializeComponent(); - AddHandler(Frame.NavigatedToEvent, (s, e) => + AddHandler(Frame.NavigatedToEvent, (_, e) => { NavigatedTo(e); }, RoutingStrategies.Direct); diff --git a/src/Ryujinx/UI/Views/User/UserRecovererView.axaml.cs b/src/Ryujinx/UI/Views/User/UserRecovererView.axaml.cs index 31934349d..3e3439a07 100644 --- a/src/Ryujinx/UI/Views/User/UserRecovererView.axaml.cs +++ b/src/Ryujinx/UI/Views/User/UserRecovererView.axaml.cs @@ -14,7 +14,7 @@ namespace Ryujinx.Ava.UI.Views.User public UserRecovererView() { InitializeComponent(); - AddHandler(Frame.NavigatedToEvent, (s, e) => + AddHandler(Frame.NavigatedToEvent, (_, e) => { NavigatedTo(e); }, RoutingStrategies.Direct); diff --git a/src/Ryujinx/UI/Views/User/UserSaveManagerView.axaml.cs b/src/Ryujinx/UI/Views/User/UserSaveManagerView.axaml.cs index 00a229fae..db0b7b93f 100644 --- a/src/Ryujinx/UI/Views/User/UserSaveManagerView.axaml.cs +++ b/src/Ryujinx/UI/Views/User/UserSaveManagerView.axaml.cs @@ -35,7 +35,7 @@ namespace Ryujinx.Ava.UI.Views.User public UserSaveManagerView() { InitializeComponent(); - AddHandler(Frame.NavigatedToEvent, (s, e) => + AddHandler(Frame.NavigatedToEvent, (_, e) => { NavigatedTo(e); }, RoutingStrategies.Direct); diff --git a/src/Ryujinx/UI/Views/User/UserSelectorView.axaml.cs b/src/Ryujinx/UI/Views/User/UserSelectorView.axaml.cs index d132f9941..8f4cc7ba7 100644 --- a/src/Ryujinx/UI/Views/User/UserSelectorView.axaml.cs +++ b/src/Ryujinx/UI/Views/User/UserSelectorView.axaml.cs @@ -23,7 +23,7 @@ namespace Ryujinx.Ava.UI.Views.User if (Program.PreviewerDetached) { - AddHandler(Frame.NavigatedToEvent, (s, e) => + AddHandler(Frame.NavigatedToEvent, (_, e) => { NavigatedTo(e); }, RoutingStrategies.Direct); diff --git a/src/Ryujinx/UI/Windows/MainWindow.axaml.cs b/src/Ryujinx/UI/Windows/MainWindow.axaml.cs index d74220629..7de7139f6 100644 --- a/src/Ryujinx/UI/Windows/MainWindow.axaml.cs +++ b/src/Ryujinx/UI/Windows/MainWindow.axaml.cs @@ -611,7 +611,7 @@ namespace Ryujinx.Ava.UI.Windows if (ViewModel.AppHost != null) { ViewModel.AppHost.AppExit -= ViewModel.AppHost_AppExit; - ViewModel.AppHost.AppExit += (sender, e) => + ViewModel.AppHost.AppExit += (_, _) => { ViewModel.AppHost = null;