mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 20:33:40 +01:00
Merge pull request #1170 from Berna-L/fools23
This commit is contained in:
commit
b612ecea9c
2 changed files with 10 additions and 3 deletions
|
|
@ -188,8 +188,15 @@ internal class FoolsManager : IDisposable, IServiceType
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var pluginInstance = (IFoolsPlugin)Activator.CreateInstance(pluginMetadata.Type);
|
try
|
||||||
this.ActivatedPlugins.Add(plugin, pluginInstance);
|
{
|
||||||
|
var pluginInstance = (IFoolsPlugin)Activator.CreateInstance(pluginMetadata.Type);
|
||||||
|
this.ActivatedPlugins.Add(plugin, pluginInstance);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Log.Error(e, "There was an exception while activating plugin {0}", plugin);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@ public class HeyDalamudPlugin : IFoolsPlugin
|
||||||
{
|
{
|
||||||
Chat.Print(PluginName, "Error",
|
Chat.Print(PluginName, "Error",
|
||||||
"Could not start voice recognition. Please make sure that you have the American English Windows Language Pack installed.");
|
"Could not start voice recognition. Please make sure that you have the American English Windows Language Pack installed.");
|
||||||
Log.Error(ex, "Could not init voice recognition");
|
throw new Exception("Could not init voice recognition", ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue