mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-23 04:53:09 +00:00
Add file types for all file formats
This commit is contained in:
parent
e744b3de26
commit
f372373cdc
56 changed files with 126 additions and 14 deletions
Binary file not shown.
|
@ -13,6 +13,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class AAMP : IEditor<AampEditorBase>, IFileFormat
|
public class AAMP : IEditor<AampEditorBase>, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Parameter;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "AAMP" };
|
public string[] Description { get; set; } = new string[] { "AAMP" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.aamp" };
|
public string[] Extension { get; set; } = new string[] { "*.aamp" };
|
||||||
|
|
|
@ -15,6 +15,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class BEA : TreeNodeFile, IFileFormat
|
public class BEA : TreeNodeFile, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Archive;
|
||||||
|
|
||||||
public bool CanAddFiles { get; set; } = false;
|
public bool CanAddFiles { get; set; } = false;
|
||||||
public bool CanRenameFiles { get; set; } = false;
|
public bool CanRenameFiles { get; set; } = false;
|
||||||
public bool CanDeleteFiles { get; set; } = false;
|
public bool CanDeleteFiles { get; set; } = false;
|
||||||
|
|
|
@ -14,6 +14,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class GFPAK : TreeNodeFile, IFileFormat
|
public class GFPAK : TreeNodeFile, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Archive;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "Graphic Package" };
|
public string[] Description { get; set; } = new string[] { "Graphic Package" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.gfpak" };
|
public string[] Extension { get; set; } = new string[] { "*.gfpak" };
|
||||||
|
|
|
@ -12,6 +12,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
class NARC : TreeNodeFile, IFileFormat
|
class NARC : TreeNodeFile, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Archive;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "Nitro Archive (NARC)" };
|
public string[] Description { get; set; } = new string[] { "Nitro Archive (NARC)" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.narc" };
|
public string[] Extension { get; set; } = new string[] { "*.narc" };
|
||||||
|
|
|
@ -13,6 +13,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class SARC : TreeNodeFile, IFileFormat
|
public class SARC : TreeNodeFile, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Archive;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "SARC", "SARC", "SARC", "SARC", "SARC", "SARC" };
|
public string[] Description { get; set; } = new string[] { "SARC", "SARC", "SARC", "SARC", "SARC", "SARC" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.pack", "*.sarc", "*.bgenv", "*.sblarc", "*.sbactorpack", ".arc" };
|
public string[] Extension { get; set; } = new string[] { "*.pack", "*.sarc", "*.bgenv", "*.sblarc", "*.sbactorpack", ".arc" };
|
||||||
|
|
|
@ -12,6 +12,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class SDF : TreeNodeFile, IFileFormat
|
public class SDF : TreeNodeFile, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Archive;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "Snow Engine Data Table Of Contents" };
|
public string[] Description { get; set; } = new string[] { "Snow Engine Data Table Of Contents" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.sdftoc" };
|
public string[] Extension { get; set; } = new string[] { "*.sdftoc" };
|
||||||
|
|
|
@ -13,6 +13,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class TMPK : IFileFormat, IArchiveFile
|
public class TMPK : IFileFormat, IArchiveFile
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Archive;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "TMPK" };
|
public string[] Description { get; set; } = new string[] { "TMPK" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.pack" };
|
public string[] Extension { get; set; } = new string[] { "*.pack" };
|
||||||
|
|
|
@ -17,6 +17,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class BARS : TreeNodeFile, IFileFormat
|
public class BARS : TreeNodeFile, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Audio;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "Sound Archive" };
|
public string[] Description { get; set; } = new string[] { "Sound Archive" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.bars" };
|
public string[] Extension { get; set; } = new string[] { "*.bars" };
|
||||||
|
|
|
@ -9,6 +9,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class BFGRP : IFileFormat
|
public class BFGRP : IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Audio;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "Audio Group" };
|
public string[] Description { get; set; } = new string[] { "Audio Group" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.bfgrp" };
|
public string[] Extension { get; set; } = new string[] { "*.bfgrp" };
|
||||||
|
|
|
@ -12,6 +12,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class BFSAR : TreeNodeFile, IFileFormat
|
public class BFSAR : TreeNodeFile, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Audio;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "Cafe Sound Archive" };
|
public string[] Description { get; set; } = new string[] { "Cafe Sound Archive" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.bfsar" };
|
public string[] Extension { get; set; } = new string[] { "*.bfsar" };
|
||||||
|
|
|
@ -12,6 +12,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class BARSLIST : IFileFormat
|
public class BARSLIST : IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Audio;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "Audio Archive List" };
|
public string[] Description { get; set; } = new string[] { "Audio Archive List" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.barslist" };
|
public string[] Extension { get; set; } = new string[] { "*.barslist" };
|
||||||
|
|
|
@ -14,6 +14,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class BCSTM : VGAdudioFile, IEditor<AudioPlayer>, IFileFormat
|
public class BCSTM : VGAdudioFile, IEditor<AudioPlayer>, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Audio;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "Cafe Stream" };
|
public string[] Description { get; set; } = new string[] { "Cafe Stream" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.bcstm" };
|
public string[] Extension { get; set; } = new string[] { "*.bcstm" };
|
||||||
|
|
|
@ -14,6 +14,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class BCWAV : VGAdudioFile, IEditor<AudioPlayer>, IFileFormat
|
public class BCWAV : VGAdudioFile, IEditor<AudioPlayer>, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Audio;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "Ctr Wave" };
|
public string[] Description { get; set; } = new string[] { "Ctr Wave" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.bcwav" };
|
public string[] Extension { get; set; } = new string[] { "*.bcwav" };
|
||||||
|
|
|
@ -14,6 +14,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class BFSTM : VGAdudioFile, IEditor<AudioPlayer>, IFileFormat
|
public class BFSTM : VGAdudioFile, IEditor<AudioPlayer>, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Audio;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "Cafe Stream" };
|
public string[] Description { get; set; } = new string[] { "Cafe Stream" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.bfstm" };
|
public string[] Extension { get; set; } = new string[] { "*.bfstm" };
|
||||||
|
|
|
@ -14,6 +14,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class BFWAV : VGAdudioFile, IEditor<AudioPlayer>, IFileFormat
|
public class BFWAV : VGAdudioFile, IEditor<AudioPlayer>, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Audio;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "Cafe Wave" };
|
public string[] Description { get; set; } = new string[] { "Cafe Wave" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.bfwav" };
|
public string[] Extension { get; set; } = new string[] { "*.bfwav" };
|
||||||
|
|
|
@ -14,6 +14,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class BRSTM : VGAdudioFile, IEditor<AudioPlayer>, IFileFormat
|
public class BRSTM : VGAdudioFile, IEditor<AudioPlayer>, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Audio;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "Revolution Stream" };
|
public string[] Description { get; set; } = new string[] { "Revolution Stream" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.brstm" };
|
public string[] Extension { get; set; } = new string[] { "*.brstm" };
|
||||||
|
|
|
@ -14,6 +14,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class BRWAV : VGAdudioFile, IEditor<AudioPlayer>, IFileFormat
|
public class BRWAV : VGAdudioFile, IEditor<AudioPlayer>, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Audio;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "Revolution Wave" };
|
public string[] Description { get; set; } = new string[] { "Revolution Wave" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.brwav" };
|
public string[] Extension { get; set; } = new string[] { "*.brwav" };
|
||||||
|
|
|
@ -14,6 +14,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class HPS : VGAdudioFile, IEditor<AudioPlayer>, IFileFormat
|
public class HPS : VGAdudioFile, IEditor<AudioPlayer>, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Audio;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "hps" };
|
public string[] Description { get; set; } = new string[] { "hps" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.HPS" };
|
public string[] Extension { get; set; } = new string[] { "*.HPS" };
|
||||||
|
|
|
@ -14,6 +14,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class IDSP : VGAdudioFile, IEditor<AudioPlayer>, IFileFormat
|
public class IDSP : VGAdudioFile, IEditor<AudioPlayer>, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Audio;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "IDSP" };
|
public string[] Description { get; set; } = new string[] { "IDSP" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.idsp" };
|
public string[] Extension { get; set; } = new string[] { "*.idsp" };
|
||||||
|
|
|
@ -16,6 +16,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class MP3 : IEditor<AudioPlayer>, IFileFormat
|
public class MP3 : IEditor<AudioPlayer>, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Audio;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "MPEG-1 Audio Layer-3" };
|
public string[] Description { get; set; } = new string[] { "MPEG-1 Audio Layer-3" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.mp3" };
|
public string[] Extension { get; set; } = new string[] { "*.mp3" };
|
||||||
|
|
|
@ -16,6 +16,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class OGG : IEditor<AudioPlayer>, IFileFormat
|
public class OGG : IEditor<AudioPlayer>, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Audio;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "Ogg-vorbis" };
|
public string[] Description { get; set; } = new string[] { "Ogg-vorbis" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.ogg" };
|
public string[] Extension { get; set; } = new string[] { "*.ogg" };
|
||||||
|
|
|
@ -14,6 +14,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class WAV : IEditor<AudioPlayer>, IFileFormat
|
public class WAV : IEditor<AudioPlayer>, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Audio;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "Waveform Audio" };
|
public string[] Description { get; set; } = new string[] { "Waveform Audio" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.wav" };
|
public string[] Extension { get; set; } = new string[] { "*.wav" };
|
||||||
|
|
|
@ -21,6 +21,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class BFRES : BFRESWrapper, IFileFormat
|
public class BFRES : BFRESWrapper, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Resource;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "BFRES" };
|
public string[] Description { get; set; } = new string[] { "BFRES" };
|
||||||
public string[] Extension { get; set; } = new string[] {
|
public string[] Extension { get; set; } = new string[] {
|
||||||
|
|
|
@ -15,6 +15,8 @@ namespace FirstPlugin.Turbo
|
||||||
{
|
{
|
||||||
public class PartsBIN : TreeNodeFile, IFileFormat
|
public class PartsBIN : TreeNodeFile, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Parameter;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "Mario Kart 8 Kart Parts" };
|
public string[] Description { get; set; } = new string[] { "Mario Kart 8 Kart Parts" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.bin" };
|
public string[] Extension { get; set; } = new string[] { "*.bin" };
|
||||||
|
|
|
@ -14,6 +14,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class BYAML : IEditor<ByamlEditor>, IFileFormat
|
public class BYAML : IEditor<ByamlEditor>, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Parameter;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "BYAML" };
|
public string[] Description { get; set; } = new string[] { "BYAML" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.byaml", "*.byml", "*.bprm", "*.sbyml" };
|
public string[] Extension { get; set; } = new string[] { "*.byaml", "*.byml", "*.bprm", "*.sbyml" };
|
||||||
|
|
|
@ -19,6 +19,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class KCL : TreeNodeFile, IFileFormat
|
public class KCL : TreeNodeFile, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Collision;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "KCL" };
|
public string[] Description { get; set; } = new string[] { "KCL" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.kcl" };
|
public string[] Extension { get; set; } = new string[] { "*.kcl" };
|
||||||
|
|
|
@ -12,6 +12,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class CsvModel : IFileFormat
|
public class CsvModel : IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Spreadsheet;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "CSV Model" };
|
public string[] Description { get; set; } = new string[] { "CSV Model" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.csv" };
|
public string[] Extension { get; set; } = new string[] { "*.csv" };
|
||||||
|
|
|
@ -13,6 +13,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class EFCF : IFileFormat, IEditor<EffectTableEditor>
|
public class EFCF : IFileFormat, IEditor<EffectTableEditor>
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Effect;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "Effect Table" };
|
public string[] Description { get; set; } = new string[] { "Effect Table" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.efc" };
|
public string[] Extension { get; set; } = new string[] { "*.efc" };
|
||||||
|
|
|
@ -10,6 +10,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class EFF : TreeNodeFile,IFileFormat
|
public class EFF : TreeNodeFile,IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Effect;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "Namco Effect" };
|
public string[] Description { get; set; } = new string[] { "Namco Effect" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.eff" };
|
public string[] Extension { get; set; } = new string[] { "*.eff" };
|
||||||
|
|
|
@ -16,6 +16,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class PTCL : TreeNodeFile, IFileFormat
|
public class PTCL : TreeNodeFile, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Effect;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "Cafe Particle" };
|
public string[] Description { get; set; } = new string[] { "Cafe Particle" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.ptcl", "*.sesetlist" };
|
public string[] Extension { get; set; } = new string[] { "*.ptcl", "*.sesetlist" };
|
||||||
|
|
|
@ -13,6 +13,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class BFFNT : TreeNodeFile, IFileFormat
|
public class BFFNT : TreeNodeFile, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Font;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "Cafe Font" };
|
public string[] Description { get; set; } = new string[] { "Cafe Font" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.bffnt" };
|
public string[] Extension { get; set; } = new string[] { "*.bffnt" };
|
||||||
|
|
|
@ -11,6 +11,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class BFLAN : IFileFormat
|
public class BFLAN : IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Layout;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "Cafe Layout Animation (GUI)" };
|
public string[] Description { get; set; } = new string[] { "Cafe Layout Animation (GUI)" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.bflan" };
|
public string[] Extension { get; set; } = new string[] { "*.bflan" };
|
||||||
|
|
|
@ -11,6 +11,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class BFLYT : IFileFormat
|
public class BFLYT : IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Layout;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "Cafe Layout (GUI)" };
|
public string[] Description { get; set; } = new string[] { "Cafe Layout (GUI)" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.bflyt" };
|
public string[] Extension { get; set; } = new string[] { "*.bflyt" };
|
||||||
|
|
|
@ -13,6 +13,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class MSBT : IEditor<MSBTEditor>, IFileFormat
|
public class MSBT : IEditor<MSBTEditor>, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Message;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "Message Binary Text" };
|
public string[] Description { get; set; } = new string[] { "Message Binary Text" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.msbt" };
|
public string[] Extension { get; set; } = new string[] { "*.msbt" };
|
||||||
|
|
|
@ -9,6 +9,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class NCA : IFileFormat
|
public class NCA : IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Rom;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "NCA" };
|
public string[] Description { get; set; } = new string[] { "NCA" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.nca" };
|
public string[] Extension { get; set; } = new string[] { "*.nca" };
|
||||||
|
|
|
@ -17,6 +17,8 @@ namespace FirstPlugin
|
||||||
|
|
||||||
public class NSP : TreeNodeFile, IFileFormat
|
public class NSP : TreeNodeFile, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Rom;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "NSP" };
|
public string[] Description { get; set; } = new string[] { "NSP" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.nsp" };
|
public string[] Extension { get; set; } = new string[] { "*.nsp" };
|
||||||
|
|
|
@ -9,6 +9,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class XCI : IFileFormat
|
public class XCI : IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Rom;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "XCI" };
|
public string[] Description { get; set; } = new string[] { "XCI" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.xci" };
|
public string[] Extension { get; set; } = new string[] { "*.xci" };
|
||||||
|
|
|
@ -13,6 +13,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class BFSHA : TreeNodeFile, IFileFormat
|
public class BFSHA : TreeNodeFile, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Shader;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "Binary Shader Archive" };
|
public string[] Description { get; set; } = new string[] { "Binary Shader Archive" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.bfsha" };
|
public string[] Extension { get; set; } = new string[] { "*.bfsha" };
|
||||||
|
|
|
@ -13,6 +13,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class BNSH : TreeNodeFile, IFileFormat
|
public class BNSH : TreeNodeFile, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Shader;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "Binary Shader" };
|
public string[] Description { get; set; } = new string[] { "Binary Shader" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.bnsh" };
|
public string[] Extension { get; set; } = new string[] { "*.bnsh" };
|
||||||
|
|
|
@ -14,6 +14,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class SHARC : TreeNodeFile, IFileFormat
|
public class SHARC : TreeNodeFile, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Shader;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "Shader Archive" };
|
public string[] Description { get; set; } = new string[] { "Shader Archive" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.sharc" };
|
public string[] Extension { get; set; } = new string[] { "*.sharc" };
|
||||||
|
|
|
@ -13,6 +13,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class SHARCFB : TreeNodeFile, IFileFormat
|
public class SHARCFB : TreeNodeFile, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Shader;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "Binary Shader Archive" };
|
public string[] Description { get; set; } = new string[] { "Binary Shader Archive" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.sharcfb" };
|
public string[] Extension { get; set; } = new string[] { "*.sharcfb" };
|
||||||
|
|
|
@ -14,6 +14,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class BCLIM : STGenericTexture, IEditor<ImageEditorForm>, IFileFormat
|
public class BCLIM : STGenericTexture, IEditor<ImageEditorForm>, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Image;
|
||||||
|
|
||||||
public override TEX_FORMAT[] SupportedFormats
|
public override TEX_FORMAT[] SupportedFormats
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|
|
@ -14,6 +14,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class BFLIM : STGenericTexture, IEditor<ImageEditorForm>, IFileFormat
|
public class BFLIM : STGenericTexture, IEditor<ImageEditorForm>, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Layout;
|
||||||
|
|
||||||
public override TEX_FORMAT[] SupportedFormats
|
public override TEX_FORMAT[] SupportedFormats
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|
|
@ -22,6 +22,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class BNTX : TreeNodeFile, IFileFormat
|
public class BNTX : TreeNodeFile, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Image;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "BNTX" };
|
public string[] Description { get; set; } = new string[] { "BNTX" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.bntx" };
|
public string[] Extension { get; set; } = new string[] { "*.bntx" };
|
||||||
|
|
|
@ -35,6 +35,8 @@ namespace FirstPlugin
|
||||||
|
|
||||||
public class GTXFile : TreeNodeFile, IFileFormat
|
public class GTXFile : TreeNodeFile, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Image;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "GTX" };
|
public string[] Description { get; set; } = new string[] { "GTX" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.gtx" };
|
public string[] Extension { get; set; } = new string[] { "*.gtx" };
|
||||||
|
|
|
@ -15,6 +15,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class NUT : TreeNodeFile, IFileFormat
|
public class NUT : TreeNodeFile, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Image;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "Namco Universal Texture Container" };
|
public string[] Description { get; set; } = new string[] { "Namco Universal Texture Container" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.nut" };
|
public string[] Extension { get; set; } = new string[] { "*.nut" };
|
||||||
|
|
|
@ -16,6 +16,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class NUTEXB : STGenericTexture, IFileFormat
|
public class NUTEXB : STGenericTexture, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Image;
|
||||||
|
|
||||||
public override TEX_FORMAT[] SupportedFormats
|
public override TEX_FORMAT[] SupportedFormats
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|
|
@ -14,6 +14,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class XTX : TreeNodeFile, IFileFormat
|
public class XTX : TreeNodeFile, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Image;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "XTX" };
|
public string[] Description { get; set; } = new string[] { "XTX" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.xtx", "*.z" };
|
public string[] Extension { get; set; } = new string[] { "*.xtx", "*.z" };
|
||||||
|
|
|
@ -12,6 +12,8 @@ namespace FirstPlugin.Turbo
|
||||||
{
|
{
|
||||||
public class Course_MapCamera_bin : IEditor<MK8MapCameraEditor>, IFileFormat
|
public class Course_MapCamera_bin : IEditor<MK8MapCameraEditor>, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Default;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "Course Map Camera" };
|
public string[] Description { get; set; } = new string[] { "Course Map Camera" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.bin" };
|
public string[] Extension { get; set; } = new string[] { "*.bin" };
|
||||||
|
|
|
@ -11,6 +11,8 @@ namespace FirstPlugin
|
||||||
{
|
{
|
||||||
public class XLINK : TreeNodeFile, IFileFormat
|
public class XLINK : TreeNodeFile, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Effect;
|
||||||
|
|
||||||
public bool CanSave { get; set; }
|
public bool CanSave { get; set; }
|
||||||
public string[] Description { get; set; } = new string[] { "Effect Link" };
|
public string[] Description { get; set; } = new string[] { "Effect Link" };
|
||||||
public string[] Extension { get; set; } = new string[] { "*.bslnk", "*.belnk" };
|
public string[] Extension { get; set; } = new string[] { "*.bslnk", "*.belnk" };
|
||||||
|
|
Binary file not shown.
|
@ -11,6 +11,8 @@ namespace Switch_Toolbox.Library
|
||||||
{
|
{
|
||||||
public class ASTC : STGenericTexture, IEditor<ImageEditorForm>, IFileFormat
|
public class ASTC : STGenericTexture, IEditor<ImageEditorForm>, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Image;
|
||||||
|
|
||||||
public override TEX_FORMAT[] SupportedFormats
|
public override TEX_FORMAT[] SupportedFormats
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|
|
@ -20,6 +20,8 @@ namespace Switch_Toolbox.Library
|
||||||
//Data from https://github.com/jam1garner/Smash-Forge/blob/master/Smash%20Forge/Filetypes/Textures/DDS.cs
|
//Data from https://github.com/jam1garner/Smash-Forge/blob/master/Smash%20Forge/Filetypes/Textures/DDS.cs
|
||||||
public class DDS : STGenericTexture, IEditor<ImageEditorForm>, IFileFormat
|
public class DDS : STGenericTexture, IEditor<ImageEditorForm>, IFileFormat
|
||||||
{
|
{
|
||||||
|
public FileType FileType { get; set; } = FileType.Image;
|
||||||
|
|
||||||
public override TEX_FORMAT[] SupportedFormats
|
public override TEX_FORMAT[] SupportedFormats
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|
|
@ -33,20 +33,6 @@ namespace Switch_Toolbox.Library
|
||||||
{
|
{
|
||||||
public FileType FileDataType = FileType.Default;
|
public FileType FileDataType = FileType.Default;
|
||||||
|
|
||||||
//Will be used for list categories
|
|
||||||
public enum FileType
|
|
||||||
{
|
|
||||||
Default,
|
|
||||||
Images,
|
|
||||||
Archives,
|
|
||||||
Graphics,
|
|
||||||
Models,
|
|
||||||
Shaders,
|
|
||||||
Collision,
|
|
||||||
Byaml,
|
|
||||||
Parameters,
|
|
||||||
}
|
|
||||||
|
|
||||||
public string GetSize()
|
public string GetSize()
|
||||||
{
|
{
|
||||||
return STMath.GetFileSize(FileData.Length, 4);
|
return STMath.GetFileSize(FileData.Length, 4);
|
||||||
|
|
|
@ -8,8 +8,30 @@ using Switch_Toolbox.Library.IO;
|
||||||
|
|
||||||
namespace Switch_Toolbox.Library
|
namespace Switch_Toolbox.Library
|
||||||
{
|
{
|
||||||
|
public enum FileType
|
||||||
|
{
|
||||||
|
Default,
|
||||||
|
Image,
|
||||||
|
Archive,
|
||||||
|
Layout,
|
||||||
|
Model,
|
||||||
|
Effect,
|
||||||
|
Font,
|
||||||
|
Audio,
|
||||||
|
Message,
|
||||||
|
Resource,
|
||||||
|
Shader,
|
||||||
|
Collision,
|
||||||
|
Parameter,
|
||||||
|
Graphic,
|
||||||
|
Rom,
|
||||||
|
Spreadsheet,
|
||||||
|
}
|
||||||
|
|
||||||
public interface IFileFormat
|
public interface IFileFormat
|
||||||
{
|
{
|
||||||
|
FileType FileType { get; set; }
|
||||||
|
|
||||||
bool CanSave { get; set; }
|
bool CanSave { get; set; }
|
||||||
|
|
||||||
string[] Description { get; set; }
|
string[] Description { get; set; }
|
||||||
|
|
Loading…
Reference in a new issue