mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 15:19:46 +00:00
Removed the no-longer necessary plugin path
This commit is contained in:
parent
f72eef2b95
commit
7f09b51e3c
@ -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);
|
@ -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;
|
||||
|
@ -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.")
|
||||
};
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user