public PluginConfig(GeniePlugin.Interfaces.IHost Host, GeniePlugin.Interfaces.IPlugin PlugIn) { _host = Host; _plugin = PlugIn; _configFile = new XmlDocument(); _configName = _plugin.Name.Replace(" ", "_"); _fileName = _configName + ".xml"; _filePath = Application.StartupPath; if (_filePath != "\\") _filePath += "\\"; _filePath += "Plugins\\"; _fullPath = _filePath + _fileName; }
public PluginLog(GeniePlugin.Interfaces.IHost Host, GeniePlugin.Interfaces.IPlugin PlugIn) { _host = Host; _plugin = PlugIn; _logName = _plugin.Name.Replace(" ", "_"); _fileName = _logName + ".log"; _filePath = Application.StartupPath; if (_filePath != "\\") _filePath += "\\"; _filePath += "Logs\\"; _fullPath = _filePath + _fileName; _logGameTime = false; _clearLogAtStart = false; _newLogAtStart = false; _useTitleSeparator = true; _titleSeparator = new String('=',70); _logStarted = false; }