diff --git a/app/MindWork AI Studio/Tools/PluginSystem/NoPlugin.cs b/app/MindWork AI Studio/Tools/PluginSystem/NoPlugin.cs index a21ab819..88c745ae 100644 --- a/app/MindWork AI Studio/Tools/PluginSystem/NoPlugin.cs +++ b/app/MindWork AI Studio/Tools/PluginSystem/NoPlugin.cs @@ -6,4 +6,4 @@ namespace AIStudio.Tools.PluginSystem; /// Represents a plugin that could not be loaded. /// /// The error message that occurred while parsing the plugin. -public sealed class NoPlugin(string parsingError) : PluginBase(string.Empty, LuaState.Create(), PluginType.NONE, parsingError); \ No newline at end of file +public sealed class NoPlugin(string parsingError) : PluginBase(LuaState.Create(), PluginType.NONE, parsingError); \ No newline at end of file diff --git a/app/MindWork AI Studio/Tools/PluginSystem/PluginBase.cs b/app/MindWork AI Studio/Tools/PluginSystem/PluginBase.cs index 39ac9aec..176f7c70 100644 --- a/app/MindWork AI Studio/Tools/PluginSystem/PluginBase.cs +++ b/app/MindWork AI Studio/Tools/PluginSystem/PluginBase.cs @@ -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 /// 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; diff --git a/app/MindWork AI Studio/Tools/PluginSystem/PluginFactory.cs b/app/MindWork AI Studio/Tools/PluginSystem/PluginFactory.cs index 8a666dcb..42c00d36 100644 --- a/app/MindWork AI Studio/Tools/PluginSystem/PluginFactory.cs +++ b/app/MindWork AI Studio/Tools/PluginSystem/PluginFactory.cs @@ -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.") }; diff --git a/app/MindWork AI Studio/Tools/PluginSystem/PluginLanguage.cs b/app/MindWork AI Studio/Tools/PluginSystem/PluginLanguage.cs index e1676e49..a4297d60 100644 --- a/app/MindWork AI Studio/Tools/PluginSystem/PluginLanguage.cs +++ b/app/MindWork AI Studio/Tools/PluginSystem/PluginLanguage.cs @@ -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;