private Silverfish() { this.singleLog = Settings.Instance.writeToSingleFile; Helpfunctions.Instance.ErrorLog("init Silverfish"); string path = ""; //System.IO.Directory.CreateDirectory(path); sttngs.setFilePath(""); if (!singleLog) { sttngs.setLoggPath(path); } else { sttngs.setLoggPath(""); sttngs.setLoggFile("UILogg.txt"); try { Helpfunctions.Instance.createNewLoggfile(); } catch { } } PenalityManager.Instance.setCombos(); Mulligan m = Mulligan.Instance; // read the mulligan list }
public Silverfish(bool snglLg) { this.singleLog = snglLg; Helpfunctions.Instance.ErrorLog("init Silverfish"); string path = (HRSettings.Get.CustomRuleFilePath).Remove(HRSettings.Get.CustomRuleFilePath.Length - 13) + "UltimateLogs" + System.IO.Path.DirectorySeparatorChar; System.IO.Directory.CreateDirectory(path); sttngs.setFilePath((HRSettings.Get.CustomRuleFilePath).Remove(HRSettings.Get.CustomRuleFilePath.Length - 13) + "Bots" + System.IO.Path.DirectorySeparatorChar + "silver" + System.IO.Path.DirectorySeparatorChar); if (!singleLog) { sttngs.setLoggPath(path); } else { sttngs.setLoggPath((HRSettings.Get.CustomRuleFilePath).Remove(HRSettings.Get.CustomRuleFilePath.Length - 13)); sttngs.setLoggFile("UILogg.txt"); Helpfunctions.Instance.createNewLoggfile(); } PenalityManager.Instance.setCombos(); Mulligan m = Mulligan.Instance; // read the mulligan list }
private Silverfish() { this.singleLog = Settings.Instance.writeToSingleFile; Helpfunctions.Instance.ErrorLog("init Silverfish"); string path = HRSettings.Get.Session.Paths.Hearthcrawler + System.IO.Path.DirectorySeparatorChar + "UltimateLogs" + System.IO.Path.DirectorySeparatorChar; System.IO.Directory.CreateDirectory(path); sttngs.setFilePath(HRSettings.Get.Session.Paths.Hearthcrawler + System.IO.Path.DirectorySeparatorChar + "Bots" + System.IO.Path.DirectorySeparatorChar + "silver" + System.IO.Path.DirectorySeparatorChar); Helpfunctions.Instance.ErrorLog(path); if (!singleLog) { sttngs.setLoggPath(path); } else { sttngs.setLoggPath(HRSettings.Get.Session.Paths.Hearthcrawler + System.IO.Path.DirectorySeparatorChar); sttngs.setLoggFile("UILogg.txt"); Helpfunctions.Instance.createNewLoggfile(); } PenalityManager.Instance.setCombos(); Mulligan m = Mulligan.Instance; // read the mulligan list }
private Silverfish() { this.singleLog = Settings.Instance.writeToSingleFile; Helpfunctions.Instance.ErrorLog("init Silverfish"); string p = "." + System.IO.Path.DirectorySeparatorChar + "Routines" + System.IO.Path.DirectorySeparatorChar + "DefaultRoutine" + System.IO.Path.DirectorySeparatorChar + "Silverfish" + System.IO.Path.DirectorySeparatorChar; string path = p + "UltimateLogs" + Path.DirectorySeparatorChar; Directory.CreateDirectory(path); sttngs.setFilePath(p + "Data" + Path.DirectorySeparatorChar); if (!singleLog) { sttngs.setLoggPath(path); } else { sttngs.setLoggPath(p); sttngs.setLoggFile("UILogg.txt"); Helpfunctions.Instance.createNewLoggfile(); } PenalityManager.Instance.setCombos(); Mulligan m = Mulligan.Instance; // read the mulligan list }