mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-24 19:35:33 +00:00
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}");
|
||||
|
||||
try
|
||||
{
|
||||
using (MemoryStream stream = new MemoryStream(buffer))
|
||||
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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue