/// <summary> /// Creates files that will contain modded information /// </summary> private void MakeModContainers() { foreach (var datName in Info.ModDatDict) { var datPath = string.Format(Info.datDir, datName.Key, datName.Value); if (!File.Exists(datPath)) { CreateDat.MakeDat(); CreateDat.ChangeDatAmounts(); } } if (Properties.Settings.Default.Modlist_Directory.Equals("")) { string md = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "/TexTools/TexTools.modlist"; Properties.Settings.Default.Modlist_Directory = md; Properties.Settings.Default.Save(); } if (!File.Exists(Properties.Settings.Default.Modlist_Directory)) { CreateDat.CreateModList(); } }
/// <summary> /// Creates files that will contain modded information /// </summary> private void MakeModContainers() { if (!File.Exists(Info.modDatDir)) { CreateDat.MakeDat(); CreateDat.ChangeDatAmounts(); } if (!File.Exists(Info.modListDir) && Properties.Settings.Default.Mod_List == 0) { CreateDat.CreateModList(); } }
/// <summary> /// Creates files that will contain modded information /// </summary> private void MakeModContainers() { foreach (var datName in Info.ModDatDict) { var datPath = string.Format(Info.datDir, datName.Key, datName.Value); if (!File.Exists(datPath)) { CreateDat.MakeDat(); CreateDat.ChangeDatAmounts(); } } if (!File.Exists(Info.modListDir)) { CreateDat.CreateModList(); } }
/// <summary> /// Creates files that will contain modded information /// </summary> private void MakeModContainers() { var ffxivDir = new DirectoryInfo(Properties.Settings.Default.FFXIV_Directory); var newModListDirectory = new DirectoryInfo(Path.Combine(ffxivDir.Parent.Parent.FullName, "XivMods.json")); if (Properties.Settings.Default.Modlist_Directory.Equals("")) { string md = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "/TexTools/TexTools.modlist"; Properties.Settings.Default.Modlist_Directory = md; Properties.Settings.Default.Save(); } if (!File.Exists(Properties.Settings.Default.Modlist_Directory)) { CreateDat.CreateModList(); } if (File.Exists(newModListDirectory.FullName)) { FlexibleMessageBox.Show("You are using an older version of TexTools.\n\n" + "Importing with this version may cause issues.", "Conflicting Versions", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } foreach (var datName in Info.ModDatDict) { var datPath = string.Format(Info.datDir, datName.Key, datName.Value); if (!File.Exists(datPath)) { CreateDat.MakeDat(); CreateDat.ChangeDatAmounts(); } } }