0
0
Fork 0
mirror of https://github.com/GreemDev/Ryujinx.git synced 2024-12-23 08:05:47 +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:
Ac_K 2019-11-29 05:42:44 +01:00 committed by jduncanator
parent da4e0856c9
commit bb7600e215

View file

@ -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();
}