fix: possibly empty error message

This commit is contained in:
goat 2020-06-08 22:36:32 +02:00
parent ccb6632310
commit c0fd954230
3 changed files with 28 additions and 20 deletions

View file

@ -107,6 +107,12 @@ namespace Dalamud {
this.LocalizationManager.SetupWithUiCulture();
}
var pluginDir = this.StartInfo.PluginDirectory;
if (this.Configuration.DoPluginTest)
pluginDir = Path.Combine(pluginDir, "..", "testPlugins");
this.PluginRepository = new PluginRepository(this, pluginDir, this.StartInfo.GameVersion);
if (Environment.GetEnvironmentVariable("DALAMUD_NOT_HAVE_INTERFACE") != "True") {
try
{
@ -139,14 +145,8 @@ namespace Dalamud {
this.BotManager.Start();
try {
var pluginDir = this.StartInfo.PluginDirectory;
if (this.Configuration.DoPluginTest)
pluginDir = Path.Combine(pluginDir, "..", "testPlugins");
this.PluginManager = new PluginManager(this, pluginDir, this.StartInfo.DefaultPluginDirectory);
this.PluginManager.LoadPlugins();
this.PluginRepository = new PluginRepository(this, pluginDir, this.StartInfo.GameVersion);
}
catch (Exception ex)
{