Fix errors

This commit is contained in:
KillzXGaming 2020-02-02 19:26:45 -05:00
parent 07f7747b41
commit 2df413a28d
3 changed files with 8 additions and 5 deletions

View file

@ -14,7 +14,7 @@ using CSCore.Codecs;
namespace FirstPlugin
{
public class MP3 : IEditor<AudioPlayerPanel>, IFileFormat
public class MP3 : IEditor<AudioPlayerPanel>, IFileFormat, ILeaveOpenOnLoad
{
public FileType FileType { get; set; } = FileType.Audio;
@ -53,8 +53,6 @@ namespace FirstPlugin
AudioPlayerPanel form = new AudioPlayerPanel();
form.Text = FileName;
form.Dock = DockStyle.Fill;
form.LoadFile(waveSource, this, false, mp3Struct);
return form;
}

View file

@ -53,8 +53,6 @@ namespace FirstPlugin
AudioPlayerPanel form = new AudioPlayerPanel();
form.Text = FileName;
form.Dock = DockStyle.Fill;
form.LoadFile(waveSource, this);
return form;
}

View file

@ -22,6 +22,13 @@ namespace LayoutBXLYT
PartLayouts.Add(header.FileName, header);
}
public IFileFormat TryGetLayout(string fileName)
{
if (PartLayouts.ContainsKey(fileName))
return PartLayouts[fileName].FileInfo;
return null;
}
public void AddAnimation(BxlanHeader header)
{
if (!PartAnimations.ContainsKey(header.FileName))