public void Initialize() { Logger.LogWarning("Initializing"); PluginWatcher.GetInstance().AddWatcher(Type, Extension); PluginLoader.GetInstance().PluginLoaders.Add(Type, this); Logger.LogWarning("loading"); LoadPlugins(); }
public void Initialize() { ReflectionExtensions.SetFieldValueValue(typeof(MoonSharp.Interpreter.Platforms.PlatformAutoDetector), "m_AutoDetectionsDone", true); ReflectionExtensions.SetFieldValueValue(typeof(MoonSharp.Interpreter.Platforms.PlatformAutoDetector), "<IsRunningOnUnity>k__BackingField", true); ReflectionExtensions.SetFieldValueValue(typeof(MoonSharp.Interpreter.Platforms.PlatformAutoDetector), "<IsRunningOnMono>k__BackingField", true); ReflectionExtensions.SetFieldValueValue(typeof(MoonSharp.Interpreter.Platforms.PlatformAutoDetector), "<IsRunningOnClr4>k__BackingField", true); PluginWatcher.GetInstance().AddWatcher(Type, Extension); PluginLoader.GetInstance().PluginLoaders.Add(Type, this); LoadPlugins(); }
public void Initialize() { PluginWatcher.GetInstance().AddWatcher(Type, Extension); PluginLoader.GetInstance().PluginLoaders.Add(Type, this); LoadPlugins(); }