Removed the no-longer necessary plugin path

This commit is contained in:
Thorsten Sommer 2025-03-23 14:27:30 +01:00
parent f72eef2b95
commit 7f09b51e3c
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
4 changed files with 4 additions and 5 deletions

View File

@ -6,4 +6,4 @@ namespace AIStudio.Tools.PluginSystem;
/// Represents a plugin that could not be loaded.
/// </summary>
/// <param name="parsingError">The error message that occurred while parsing the plugin.</param>
public sealed class NoPlugin(string parsingError) : PluginBase(string.Empty, LuaState.Create(), PluginType.NONE, parsingError);
public sealed class NoPlugin(string parsingError) : PluginBase(LuaState.Create(), PluginType.NONE, parsingError);

View File

@ -1,5 +1,4 @@
using Lua;
using Lua.Standard;
// ReSharper disable MemberCanBePrivate.Global
namespace AIStudio.Tools.PluginSystem;
@ -64,7 +63,7 @@ public abstract class PluginBase : IPluginMetadata
/// </remarks>
public bool IsValid => this is not NoPlugin && this.baseIssues.Count == 0 && this.pluginIssues.Count == 0;
protected PluginBase(string path, LuaState state, PluginType type, string parseError = "")
protected PluginBase(LuaState state, PluginType type, string parseError = "")
{
this.state = state;
this.Type = type;

View File

@ -132,7 +132,7 @@ public static partial class PluginFactory
return type switch
{
PluginType.LANGUAGE => new PluginLanguage(pluginPath, state, type),
PluginType.LANGUAGE => new PluginLanguage(state, type),
_ => new NoPlugin("This plugin type is not supported yet. Please try again with a future version of AI Studio.")
};

View File

@ -8,7 +8,7 @@ public sealed class PluginLanguage : PluginBase, ILanguagePlugin
private ILanguagePlugin? baseLanguage;
public PluginLanguage(string path, LuaState state, PluginType type) : base(path, state, type)
public PluginLanguage(LuaState state, PluginType type) : base(state, type)
{
if (this.TryInitUITextContent(out var issue, out var readContent))
this.content = readContent;