private static void LoadData() { AutoTranslator.Data_ = new MessageGroupCollection(); try { string DataFilePath = Path.Combine(POL.GetApplicationPath(AppID.FFXI), "ROM/76/23.DAT"); FileStream FS = new FileStream(DataFilePath, FileMode.Open, FileAccess.Read, FileShare.Read); Encoding E = new FFXIEncoding(); BinaryReader BR = new BinaryReader(FS, E); while (FS.Position < FS.Length) AutoTranslator.Data_.Add(AutoTranslator.ReadMessageGroup(BR, E)); BR.Close(); } catch (Exception E) { Console.WriteLine(E.ToString()); } }
private static void LoadData() { AutoTranslator.Data_ = new MessageGroupCollection(); try { string DataFilePath = Path.Combine(POL.GetApplicationPath(AppID.FFXI), "ROM/76/23.DAT"); FileStream FS = new FileStream(DataFilePath, FileMode.Open, FileAccess.Read, FileShare.Read); Encoding E = new FFXIEncoding(); BinaryReader BR = new BinaryReader(FS, E); while (FS.Position < FS.Length) { AutoTranslator.Data_.Add(AutoTranslator.ReadMessageGroup(BR, E)); } BR.Close(); } catch (Exception E) { Console.WriteLine(E.ToString()); } }