aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx/Ui/Windows/ControllerWindow.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx/Ui/Windows/ControllerWindow.cs')
-rw-r--r--Ryujinx/Ui/Windows/ControllerWindow.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx/Ui/Windows/ControllerWindow.cs b/Ryujinx/Ui/Windows/ControllerWindow.cs
index 002f8fe2..8c3a43c8 100644
--- a/Ryujinx/Ui/Windows/ControllerWindow.cs
+++ b/Ryujinx/Ui/Windows/ControllerWindow.cs
@@ -246,7 +246,7 @@ namespace Ryujinx.Ui.Windows
if (str.Length > MaxSize)
{
- return str.Substring(0, MaxSize - ShrinkChars.Length) + ShrinkChars;
+ return $"{str.AsSpan(0, MaxSize - ShrinkChars.Length)}{ShrinkChars}";
}
return str;