mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-29 17:19:50 -06: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:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user