mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-12 19:46:41 +00:00
Clean LM string (#512)
* Update ILogger.cs * Update ILogger.cs remove optionnal args * Change to interpolated strings
This commit is contained in:
parent
dc02ac08ca
commit
ea35b3d1b0
1 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue