BoettcherDasOriginal / LeoConsole

LeoConsole is a terminal with many features! It allows you to quickly and easily program smaller or larger console functions or use those of others. It is written in C# 10 under .NET 6
GNU General Public License v3.0
2 stars 0 forks source link

PluginMain and Commands #30

Closed alexcoder04 closed 2 years ago

alexcoder04 commented 2 years ago

https://github.com/BoettcherDasOriginal/LeoConsole/blob/35f5bdffa2a3d72779658009a734ede6263f47e1/src/LeoConsole/LeoConsole.cs#L115

it looks like the commands are still registered before PluginMain() ist called, so new commands added in PluginMain() are ignored.

Registering commands inside PluginMain() rather then inside PluginInit() should allow to use savepath etc while registering the command (e.g. essential for scripts plugin).