public bool LoadConfig() { OpenConfigDialog OCD = new OpenConfigDialog(Settings); if (OCD.ShowDialog() == DialogResult.OK) { if (Pinball != null) { Pinball.Finish(); } Pinball = new Pinball(); Pinball.Init(OCD.GlobalConfigFilename, OCD.TableFilename, OCD.RomName); DisplayTableElements(); return(true); } else { return(false); } }
/// <summary> /// Finishes the plugin.<br /> /// This is the last method called, before a plugin is discared. This method is also called, after a undhandled exception has occured in a plugin.<br/> /// The IHyperpinPlugin interface requires the implementation of this method.<br/> /// </summary> public void PluginFinish() { Pinball.Finish(); }