prepo: Silent error while parsing report (#837)
Due to a guessed parsing implementation of the report, sometime it throw an error, since the data isn't really useful, it's better to silent possible exceptions with a message.
This commit is contained in:
parent
da4e0856c9
commit
bb7600e215
@ -93,6 +93,8 @@ namespace Ryujinx.HLE.HOS.Services.Prepo
|
|||||||
|
|
||||||
sb.AppendLine($" Room: {room}");
|
sb.AppendLine($" Room: {room}");
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
using (MemoryStream stream = new MemoryStream(buffer))
|
using (MemoryStream stream = new MemoryStream(buffer))
|
||||||
using (BinaryReader reader = new BinaryReader(stream))
|
using (BinaryReader reader = new BinaryReader(stream))
|
||||||
{
|
{
|
||||||
@ -181,6 +183,11 @@ namespace Ryujinx.HLE.HOS.Services.Prepo
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
sb.AppendLine(" Error while parsing the report buffer.");
|
||||||
|
}
|
||||||
|
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user