mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-26 06:20:24 +00:00
Fix errors
This commit is contained in:
parent
07f7747b41
commit
2df413a28d
3 changed files with 8 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -53,8 +53,6 @@ namespace FirstPlugin
|
|||
AudioPlayerPanel form = new AudioPlayerPanel();
|
||||
form.Text = FileName;
|
||||
form.Dock = DockStyle.Fill;
|
||||
form.LoadFile(waveSource, this);
|
||||
|
||||
return form;
|
||||
}
|
||||
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue