public static void Intialize() { D2IFile = new D2IFile(); // D2IFile.Open(Environment.CurrentDirectory + "\\lang.d2i"); //Logger.Log(Environment.CurrentDirectory + "/lang.d2i"); D2IFile.Open(Environment.CurrentDirectory + "/lang.d2i"); }
public static void OpenD2Os(string path, bool log) { Log = log; GameData.Init(path); D2IFile = new D2IFile(); try { D2IFile.Open(path + "/lang.d2i"); Logger.Log("D2I File Loaded"); } catch { throw new Exception(string.Format("Unable to find D2IFile: {0}", path + "/lang.d2i")); } foreach (var value in Enum.GetValues(typeof(D2oFileEnum))) { LoadD2OFile((D2oFileEnum)value, Log); } }