From 68428b8097ca4ae6c26df7ee2ce569f22e56b932 Mon Sep 17 00:00:00 2001 From: reggie Date: Tue, 8 Oct 2024 21:07:25 -0500 Subject: [PATCH] More styleguide things --- src/Ryujinx/UI/ViewModels/Input/InputViewModel.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Ryujinx/UI/ViewModels/Input/InputViewModel.cs b/src/Ryujinx/UI/ViewModels/Input/InputViewModel.cs index 70547115..b5252c5b 100644 --- a/src/Ryujinx/UI/ViewModels/Input/InputViewModel.cs +++ b/src/Ryujinx/UI/ViewModels/Input/InputViewModel.cs @@ -445,7 +445,7 @@ namespace Ryujinx.Ava.UI.ViewModels.Input string GetUniqueGamepadName(IGamepad gamepad, ref int controllerNumber) { - var name = GetGamepadName(gamepad, controllerNumber); + string name = GetGamepadName(gamepad, controllerNumber); if (Devices.Any(controller => controller.Name == name)) { @@ -479,7 +479,7 @@ namespace Ryujinx.Ava.UI.ViewModels.Input if (gamepad != null) { - var name = GetUniqueGamepadName(gamepad, ref controllerNumber); + string name = GetUniqueGamepadName(gamepad, ref controllerNumber); Devices.Add((DeviceType.Controller, id, name)); } } @@ -697,7 +697,7 @@ namespace Ryujinx.Ava.UI.ViewModels.Input if (!File.Exists(path)) { - var index = ProfilesList.IndexOf(ProfileName); + int index = ProfilesList.IndexOf(ProfileName); if (index != -1) { ProfilesList.RemoveAt(index);