From ea35b3d1b07f10c75634f63e0133927cd5fe08ff Mon Sep 17 00:00:00 2001 From: Ac_K Date: Wed, 21 Nov 2018 07:27:18 +0100 Subject: [PATCH] Clean LM string (#512) * Update ILogger.cs * Update ILogger.cs remove optionnal args * Change to interpolated strings --- Ryujinx.HLE/HOS/Services/Lm/ILogger.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Ryujinx.HLE/HOS/Services/Lm/ILogger.cs b/Ryujinx.HLE/HOS/Services/Lm/ILogger.cs index 8a630ce5..20579dfd 100644 --- a/Ryujinx.HLE/HOS/Services/Lm/ILogger.cs +++ b/Ryujinx.HLE/HOS/Services/Lm/ILogger.cs @@ -62,23 +62,23 @@ namespace Ryujinx.HLE.HOS.Services.Lm } else if (Field == LmLogField.Line) { - FieldStr = Field + ": " + Reader.ReadInt32(); + FieldStr = $"{Field}: {Reader.ReadInt32()}"; } else if (Field == LmLogField.DropCount) { - FieldStr = Field + ": " + Reader.ReadInt64(); + FieldStr = $"{Field}: {Reader.ReadInt64()}"; } else if (Field == LmLogField.Time) { - FieldStr = Field + ": " + Reader.ReadInt64() + "s"; + FieldStr = $"{Field}: {Reader.ReadInt64()}s"; } else if (Field < LmLogField.Count) { - FieldStr = Field + ": \"" + Encoding.UTF8.GetString(Reader.ReadBytes(Size)) + "\""; + FieldStr = $"{Field}: '{Encoding.UTF8.GetString(Reader.ReadBytes(Size)).TrimEnd()}'"; } else { - FieldStr = "Field" + Field + ": \"" + Encoding.UTF8.GetString(Reader.ReadBytes(Size)) + "\""; + FieldStr = $"Field{Field}: '{Encoding.UTF8.GetString(Reader.ReadBytes(Size)).TrimEnd()}'"; } SB.AppendLine(" " + FieldStr);