From d14dce2b95dad7443aee39e3cb3e64f0a7a8f8bc Mon Sep 17 00:00:00 2001 From: Ted John Date: Tue, 2 Jan 2018 18:23:14 +0000 Subject: [PATCH] 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. --- src/openrct2/FileClassifier.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openrct2/FileClassifier.cpp b/src/openrct2/FileClassifier.cpp index 7f762be6d4..e91742d0ea 100644 --- a/src/openrct2/FileClassifier.cpp +++ b/src/openrct2/FileClassifier.cpp @@ -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;