public TrojanProcessManager(string TrojanPath, InfoDispDelegate InfoDisp) { exePath = TrojanPath; proc = null; infoDisp = InfoDisp; _Mode = RunMode.None; _Status = RunStatus.Exceptional; }
public TrojanConfigManager(string ConfigPath, InfoDispDelegate InfoDisp) { infoDisp = InfoDisp; infoDisp("Parsing config file", "LiConfMgmt"); ConfPath = ConfigPath; Config = new TrojanConfig(); Config.run_type = "client"; Config.RunMode = RunMode.Client; }
public TrojanSettingManager(string SettingPath, InfoDispDelegate InfoDisp, NoticeDispDelegate NotiDisp, TrojanProcessManager Tpm) { infoDisp = InfoDisp; notiDisp = NotiDisp; infoDisp("Loading setting file", "LiSettMgmt"); SettPath = SettingPath; Setting = new TrojanSetting(); autosave = new Thread(AutoSave); autorestart = new Thread(AutoDetect); tpm = Tpm; }