public static void Configure() { try { //Config can be called without init //logging is setup in init() //So we need to check if logging is //active, incase of errors dealing //with plugin config if (!hasInit) { LogSetup(); } ConfigFile.LoadConf(iniFolderPath, "CLR_DEV9.ini"); if (!hasInit) { LogInit(); } ConfigFile.DoConfig(iniFolderPath, "CLR_DEV9.ini"); ConfigFile.SaveConf(iniFolderPath, "CLR_DEV9.ini"); if (!hasInit) { CLR_PSE_PluginLog.Close(); } } catch (Exception e) when(Log_Fatal(e)) { throw; } }
public static void Configure() { try { LogInit(); ConfigFile.LoadConf(iniFolderPath, "CLR_DEV9.ini"); ConfigFile.DoConfig(iniFolderPath, "CLR_DEV9.ini"); ConfigFile.SaveConf(iniFolderPath, "CLR_DEV9.ini"); } catch (Exception e) { CLR_PSE_PluginLog.MsgBoxErrorTrapper(e); throw; } }