1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 03:23:15 +01:00

Prevent invalid chunk message when loading SC4

Exception messages were being logged when classifying the file type. This is generally unwanted as it will happen in normal cicumstances.
This commit is contained in:
Ted John
2018-01-02 18:23:14 +00:00
parent b38123924a
commit d14dce2b95

View File

@@ -89,7 +89,8 @@ static bool TryClassifyAsS6(IStream * stream, ClassifiedFileInfo * result)
}
catch (const Exception& e)
{
Console::Error::WriteLine(e.GetMessage());
// Exceptions are likely to occur if file is not S6 format
log_verbose(e.GetMessage());
}
stream->SetPosition(originalPosition);
return success;