Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: add a try catch for config reading.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Jan 28, 2023
1 parent eec89c1 commit 7808c41
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion RotationSolver/RotationSolverPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,14 @@ public sealed class RotationSolverPlugin : IDalamudPlugin, IDisposable
public RotationSolverPlugin(DalamudPluginInterface pluginInterface)
{
pluginInterface.Create<Service>();
Service.Configuration = pluginInterface.GetPluginConfig() as PluginConfiguration ?? new PluginConfiguration();
try
{
Service.Configuration = pluginInterface.GetPluginConfig() as PluginConfiguration ?? new PluginConfiguration();
}
catch
{
Service.Configuration = new PluginConfiguration();
}
Service.Address = new PluginAddressResolver();
Service.Address.Setup();

Expand Down

0 comments on commit 7808c41

Please sign in to comment.