-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPluginDebugger.cs
More file actions
79 lines (43 loc) · 1.38 KB
/
Copy pathPluginDebugger.cs
File metadata and controls
79 lines (43 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
using System;
using System.IO;
namespace ShowWrite
{
public static class PluginDebugger
{
public static void PrintPluginStatus()
{
var pluginsPath = Config.GetPluginsPath();
if (Directory.Exists(pluginsPath))
{
var dllFiles = Directory.GetFiles(pluginsPath, "*.dll", SearchOption.AllDirectories);
foreach (var dllFile in dllFiles)
{
}
}
var plugins = PluginManager.Instance.Plugins;
foreach (var plugin in plugins)
{
if (plugin.PluginInstance is IBottomToolbarPlugin bottomToolbarPlugin)
{
try
{
var buttons = bottomToolbarPlugin.GetToolbarButtons();
foreach (var btn in buttons)
{
}
}
catch (Exception ex)
{
}
}
else
{
}
}
var toolbarButtons = PluginManager.Instance.GetBottomToolbarButtons();
foreach (var btn in toolbarButtons)
{
}
}
}
}