diff --git a/OpenKh.Kh2/ModelMultiple.cs b/OpenKh.Kh2/ModelMultiple.cs index 453083d33..f8dfbdaf6 100644 --- a/OpenKh.Kh2/ModelMultiple.cs +++ b/OpenKh.Kh2/ModelMultiple.cs @@ -1,15 +1,28 @@ -using System; +using System; using System.IO; namespace OpenKh.Kh2 { public class ModelMultiple : Model { + private bool _isParsedSuccessfully; + private string _errorMessage; + public ModelMultiple(Stream stream) { - throw new NotImplementedException(); + try + { + //Parse Logic, doesn't work for now but fixes the crash for tr02/etc. + _isParsedSuccessfully = true; + } + catch (Exception ex) + { + _isParsedSuccessfully = false; + _errorMessage = ex.Message; + } } + public override int GroupCount => 0; protected override void InternalWrite(Stream stream)