public void Initialize() { if (!PluginDirectory.Exists) { PluginDirectory.Create(); } PluginWatcher.GetInstance().AddWatcher(Type, Extension, Path.Combine(Util.GetRootFolder(), "Save")); PluginLoader.GetInstance().PluginLoaders.Add(Type, this); LoadPlugins(); }
public void Initialize() { if (!PluginDirectory.Exists) { PluginDirectory.Create(); } typeof(MoonSharp.Interpreter.Platforms.PlatformAutoDetector).SetFieldValueValue("m_AutoDetectionsDone", true); typeof(MoonSharp.Interpreter.Platforms.PlatformAutoDetector).SetFieldValueValue("<IsRunningOnUnity>k__BackingField", true); typeof(MoonSharp.Interpreter.Platforms.PlatformAutoDetector).SetFieldValueValue("<IsRunningOnMono>k__BackingField", true); typeof(MoonSharp.Interpreter.Platforms.PlatformAutoDetector).SetFieldValueValue("<IsRunningOnClr4>k__BackingField", true); PluginWatcher.GetInstance().AddWatcher(Type, Extension, Path.Combine(Util.GetRootFolder(), "Save")); PluginLoader.GetInstance().PluginLoaders.Add(Type, this); LoadPlugins(); }
public void Initialize() { PluginWatcher.GetInstance().AddWatcher(Type, Extension, Path.Combine(Util.GetRootFolder(), "Modules")); PluginLoader.GetInstance().PluginLoaders.Add(Type, this); LoadPlugins(); }