night feb-07

main
Zynh0722 2024-02-07 05:27:22 -08:00
parent 973ddb478f
commit 3efcb311ba
2 changed files with 9 additions and 16 deletions

4
Makefile Normal file
View File

@ -0,0 +1,4 @@
all : build
build:
dotnet build

View File

@ -34,20 +34,9 @@ namespace SamplePlugin
this.commandManager = commandManager;
var pluginList = pluginInterface.InstalledPlugins;
foreach (var plugin in pluginList)
foreach (var command in commandManager.Commands)
{
var assemblyName = plugin.GetType().Assembly.GetName().Name;
if (
!assemblyName.IsNullOrWhitespace()
&& !assemblyName.Equals(plugin.InternalName, StringComparison.Ordinal)
)
{
log.Warning(
"Miss-match: Name: {plugin} AssName: {assemblyName}",
plugin.Name,
assemblyName
);
}
log.Information($"{command}");
}
configuration =
@ -81,12 +70,12 @@ namespace SamplePlugin
public void Dispose()
{
this.windowSystem.RemoveAllWindows();
windowSystem.RemoveAllWindows();
ConfigWindow.Dispose();
MainWindow.Dispose();
this.commandManager.RemoveHandler(CommandName);
_ = commandManager.RemoveHandler(CommandName);
}
private void OnCommand(string command, string args)
@ -97,7 +86,7 @@ namespace SamplePlugin
private void DrawUI()
{
this.windowSystem.Draw();
windowSystem.Draw();
}
public void DrawConfigUI()