Removed the no-longer necessary plugin path

This commit is contained in:
tsommer committed 2025-03-23 14:27:30 +01:00
1 parent f72eef2b95
commit 7f09b51e3c
4 files changed
+4 -5

No files matched your search

@@ -6,4 +6,4 @@ namespace AIStudio.Tools.PluginSystem;
/// Represents a plugin that could not be loaded. /// Represents a plugin that could not be loaded.
/// </summary> /// </summary>
/// <param name="parsingError">The error message that occurred while parsing the plugin.</param> /// <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);
@@ -1,5 +1,4 @@
using Lua; using Lua;
using Lua.Standard;
// ReSharper disable MemberCanBePrivate.Global // ReSharper disable MemberCanBePrivate.Global
namespace AIStudio.Tools.PluginSystem; namespace AIStudio.Tools.PluginSystem;
@@ -64,7 +63,7 @@ public abstract class PluginBase : IPluginMetadata
/// </remarks> /// </remarks>
public bool IsValid => this is not NoPlugin && this.baseIssues.Count == 0 && this.pluginIssues.Count == 0; 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.state = state;
this.Type = type; this.Type = type;
@@ -132,7 +132,7 @@ public static partial class PluginFactory
return type switch 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.") _ => new NoPlugin("This plugin type is not supported yet. Please try again with a future version of AI Studio.")
}; };
@@ -8,7 +8,7 @@ public sealed class PluginLanguage : PluginBase, ILanguagePlugin
private ILanguagePlugin? baseLanguage; 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)) if (this.TryInitUITextContent(out var issue, out var readContent))
this.content = readContent; this.content = readContent;