// Called from MusicBee
public PluginInfo Initialise(IntPtr apiPtr)
{
//MessageBox.Show("Initialised(" + apiPtr + ")");
musicBee = new MusicBeeApiInterface();
musicBee.Initialise(apiPtr);
info.PluginInfoVersion = PluginInfoVersion;
info.Name = "Lyrics Reloaded!";
info.Description = "Lyrics loading done properly!";
info.Author = "Phillip Schichtel <Quick_Wango>";
info.TargetApplication = "MusicBee";
info.Type = PluginType.LyricsRetrieval;
info.VersionMajor = 1;
info.VersionMinor = 0;
info.Revision = 1;
info.MinInterfaceVersion = 20;
info.MinApiRevision = 25;
info.ReceiveNotifications = ReceiveNotificationFlags.StartupOnly;
info.ConfigurationPanelHeight = 0;
try
{
lyricsReloaded = new LyricsReloaded(musicBee.Setting_GetPersistentStoragePath());
}
catch (Exception e)
{
MessageBox.Show("An error occurred during plugin startup: " + e.Message);
throw;
}
try
{
lyricsReloaded.loadConfigurations();
}
catch (Exception e)
{
MessageBox.Show("An error occurred during plugin startup, send this file to the developer:\n\n" +
lyricsReloaded.getLogger().getFileInfo().FullName);
lyricsReloaded.getLogger().error(e.Message);
throw;
}
return info;
}