Skip to content

Commit

Permalink
Fix compile on update
Browse files Browse the repository at this point in the history
  • Loading branch information
austinvaness committed Jan 15, 2024
1 parent c5336eb commit 6d2de4d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions PluginLoader/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,13 @@ private void ClearGitHubCache(string pluginsDir)

try
{
Directory.Delete(pluginCache);
LogFile.WriteLine("Deleting plugin cache because of an update");
Directory.Delete(pluginCache, true);
}
catch (Exception e)
{
LogFile.Error("Failed to delete plugin cache: " + e);
}
catch { }
}

public bool TryGetPluginInstance(string id, out PluginInstance instance)
Expand Down

0 comments on commit 6d2de4d

Please sign in to comment.