public MainForm() { InitializeComponent(); ShaderTools.executableDir = executableDir; Config.StartupFromFile(MainForm.executableDir + "\\config.xml"); dockContent = new DockContentST(); dockContent = Viewport.Instance; GenericPluginLoader.LoadPlugin(); foreach (var plugin in GenericPluginLoader._Plugins) { plugin.Value.MainForm = this; plugin.Value.DockedEditor = dockContent; plugin.Value.Load(); LoadPluginContextMenus(plugin.Value.Types); } Settings settings = new Settings(this); settings.Close(); Reload(); LoadPluginFileContextMenus(); }
public MainForm() { if (DebugProgram) { System.AppDomain.CurrentDomain.UnhandledException += ExceptionHandler; } InitializeComponent(); UpdateToolbar(); ShaderTools.executableDir = executableDir; try { Config.StartupFromFile(executableDir + "\\config.xml"); } catch (Exception ex) { MessageBox.Show($"Failed to load config file! {ex}"); } GenericPluginLoader.LoadPlugin(); foreach (var plugin in GenericPluginLoader._Plugins) { plugin.Value.Load(); LoadPluginContextMenus(plugin.Value.Types); } Settings settings = new Settings(this); settings.Close(); Reload(); LoadPluginFileContextMenus(); }
private void LoadPLugins() { GenericPluginLoader.LoadPlugin(); foreach (var plugin in GenericPluginLoader._Plugins) { plugin.Value.Load(); LoadPluginContextMenus(plugin.Value.Types); } }
public MainForm() { InitializeComponent(); new DiscordPresence().Initialize(); ShaderTools.executableDir = executableDir; Config.StartupFromFile(MainForm.executableDir + "\\config.xml"); GenericPluginLoader.LoadPlugin(); foreach (var plugin in GenericPluginLoader._Plugins) { plugin.Value.Load(); LoadPluginContextMenus(plugin.Value.Types); } Settings settings = new Settings(this); settings.Close(); Reload(); LoadPluginFileContextMenus(); }