mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 20:43: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 FileType FileType { get; set; } = FileType.Parameter;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { 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 FileType FileType { get; set; } = FileType.Archive;
|
||||
|
||||
public bool CanAddFiles { get; set; } = false;
|
||||
public bool CanRenameFiles { get; set; } = false;
|
||||
public bool CanDeleteFiles { get; set; } = false;
|
||||
|
|
|
@ -14,6 +14,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class GFPAK : TreeNodeFile, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Archive;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "Graphic Package" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.gfpak" };
|
||||
|
|
|
@ -12,6 +12,8 @@ namespace FirstPlugin
|
|||
{
|
||||
class NARC : TreeNodeFile, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Archive;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "Nitro Archive (NARC)" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.narc" };
|
||||
|
|
|
@ -13,6 +13,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class SARC : TreeNodeFile, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Archive;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
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" };
|
||||
|
|
|
@ -12,6 +12,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class SDF : TreeNodeFile, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Archive;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "Snow Engine Data Table Of Contents" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.sdftoc" };
|
||||
|
|
|
@ -13,6 +13,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class TMPK : IFileFormat, IArchiveFile
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Archive;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "TMPK" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.pack" };
|
||||
|
|
|
@ -17,6 +17,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class BARS : TreeNodeFile, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Audio;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "Sound Archive" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.bars" };
|
||||
|
|
|
@ -9,6 +9,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class BFGRP : IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Audio;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "Audio Group" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.bfgrp" };
|
||||
|
|
|
@ -12,6 +12,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class BFSAR : TreeNodeFile, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Audio;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "Cafe Sound Archive" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.bfsar" };
|
||||
|
|
|
@ -12,6 +12,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class BARSLIST : IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Audio;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "Audio Archive List" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.barslist" };
|
||||
|
|
|
@ -14,6 +14,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class BCSTM : VGAdudioFile, IEditor<AudioPlayer>, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Audio;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "Cafe Stream" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.bcstm" };
|
||||
|
|
|
@ -14,6 +14,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class BCWAV : VGAdudioFile, IEditor<AudioPlayer>, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Audio;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "Ctr Wave" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.bcwav" };
|
||||
|
|
|
@ -14,6 +14,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class BFSTM : VGAdudioFile, IEditor<AudioPlayer>, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Audio;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "Cafe Stream" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.bfstm" };
|
||||
|
|
|
@ -14,6 +14,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class BFWAV : VGAdudioFile, IEditor<AudioPlayer>, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Audio;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "Cafe Wave" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.bfwav" };
|
||||
|
|
|
@ -14,6 +14,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class BRSTM : VGAdudioFile, IEditor<AudioPlayer>, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Audio;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "Revolution Stream" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.brstm" };
|
||||
|
|
|
@ -14,6 +14,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class BRWAV : VGAdudioFile, IEditor<AudioPlayer>, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Audio;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "Revolution Wave" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.brwav" };
|
||||
|
|
|
@ -14,6 +14,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class HPS : VGAdudioFile, IEditor<AudioPlayer>, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Audio;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { 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 FileType FileType { get; set; } = FileType.Audio;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { 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 FileType FileType { get; set; } = FileType.Audio;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "MPEG-1 Audio Layer-3" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.mp3" };
|
||||
|
|
|
@ -16,6 +16,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class OGG : IEditor<AudioPlayer>, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Audio;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "Ogg-vorbis" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.ogg" };
|
||||
|
|
|
@ -14,6 +14,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class WAV : IEditor<AudioPlayer>, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Audio;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "Waveform Audio" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.wav" };
|
||||
|
|
|
@ -21,6 +21,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class BFRES : BFRESWrapper, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Resource;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "BFRES" };
|
||||
public string[] Extension { get; set; } = new string[] {
|
||||
|
|
|
@ -15,6 +15,8 @@ namespace FirstPlugin.Turbo
|
|||
{
|
||||
public class PartsBIN : TreeNodeFile, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Parameter;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "Mario Kart 8 Kart Parts" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.bin" };
|
||||
|
|
|
@ -14,6 +14,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class BYAML : IEditor<ByamlEditor>, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Parameter;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "BYAML" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.byaml", "*.byml", "*.bprm", "*.sbyml" };
|
||||
|
|
|
@ -19,6 +19,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class KCL : TreeNodeFile, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Collision;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "KCL" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.kcl" };
|
||||
|
|
|
@ -12,6 +12,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class CsvModel : IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Spreadsheet;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "CSV Model" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.csv" };
|
||||
|
|
|
@ -13,6 +13,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class EFCF : IFileFormat, IEditor<EffectTableEditor>
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Effect;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "Effect Table" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.efc" };
|
||||
|
|
|
@ -10,6 +10,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class EFF : TreeNodeFile,IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Effect;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "Namco Effect" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.eff" };
|
||||
|
|
|
@ -16,6 +16,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class PTCL : TreeNodeFile, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Effect;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "Cafe Particle" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.ptcl", "*.sesetlist" };
|
||||
|
|
|
@ -13,6 +13,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class BFFNT : TreeNodeFile, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Font;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "Cafe Font" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.bffnt" };
|
||||
|
|
|
@ -11,6 +11,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class BFLAN : IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Layout;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "Cafe Layout Animation (GUI)" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.bflan" };
|
||||
|
|
|
@ -11,6 +11,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class BFLYT : IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Layout;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "Cafe Layout (GUI)" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.bflyt" };
|
||||
|
|
|
@ -13,6 +13,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class MSBT : IEditor<MSBTEditor>, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Message;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "Message Binary Text" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.msbt" };
|
||||
|
|
|
@ -9,6 +9,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class NCA : IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Rom;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { 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 FileType FileType { get; set; } = FileType.Rom;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "NSP" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.nsp" };
|
||||
|
|
|
@ -9,6 +9,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class XCI : IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Rom;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { 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 FileType FileType { get; set; } = FileType.Shader;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "Binary Shader Archive" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.bfsha" };
|
||||
|
|
|
@ -13,6 +13,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class BNSH : TreeNodeFile, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Shader;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "Binary Shader" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.bnsh" };
|
||||
|
|
|
@ -14,6 +14,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class SHARC : TreeNodeFile, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Shader;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "Shader Archive" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.sharc" };
|
||||
|
|
|
@ -13,6 +13,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class SHARCFB : TreeNodeFile, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Shader;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "Binary Shader Archive" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.sharcfb" };
|
||||
|
|
|
@ -14,6 +14,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class BCLIM : STGenericTexture, IEditor<ImageEditorForm>, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Image;
|
||||
|
||||
public override TEX_FORMAT[] SupportedFormats
|
||||
{
|
||||
get
|
||||
|
|
|
@ -14,6 +14,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class BFLIM : STGenericTexture, IEditor<ImageEditorForm>, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Layout;
|
||||
|
||||
public override TEX_FORMAT[] SupportedFormats
|
||||
{
|
||||
get
|
||||
|
|
|
@ -22,6 +22,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class BNTX : TreeNodeFile, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Image;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { 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 FileType FileType { get; set; } = FileType.Image;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { 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 FileType FileType { get; set; } = FileType.Image;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "Namco Universal Texture Container" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.nut" };
|
||||
|
|
|
@ -16,6 +16,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class NUTEXB : STGenericTexture, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Image;
|
||||
|
||||
public override TEX_FORMAT[] SupportedFormats
|
||||
{
|
||||
get
|
||||
|
|
|
@ -14,6 +14,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class XTX : TreeNodeFile, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Image;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "XTX" };
|
||||
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 FileType FileType { get; set; } = FileType.Default;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "Course Map Camera" };
|
||||
public string[] Extension { get; set; } = new string[] { "*.bin" };
|
||||
|
|
|
@ -11,6 +11,8 @@ namespace FirstPlugin
|
|||
{
|
||||
public class XLINK : TreeNodeFile, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Effect;
|
||||
|
||||
public bool CanSave { get; set; }
|
||||
public string[] Description { get; set; } = new string[] { "Effect Link" };
|
||||
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 FileType FileType { get; set; } = FileType.Image;
|
||||
|
||||
public override TEX_FORMAT[] SupportedFormats
|
||||
{
|
||||
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
|
||||
public class DDS : STGenericTexture, IEditor<ImageEditorForm>, IFileFormat
|
||||
{
|
||||
public FileType FileType { get; set; } = FileType.Image;
|
||||
|
||||
public override TEX_FORMAT[] SupportedFormats
|
||||
{
|
||||
get
|
||||
|
|
|
@ -33,20 +33,6 @@ namespace Switch_Toolbox.Library
|
|||
{
|
||||
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()
|
||||
{
|
||||
return STMath.GetFileSize(FileData.Length, 4);
|
||||
|
|
|
@ -8,8 +8,30 @@ using Switch_Toolbox.Library.IO;
|
|||
|
||||
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
|
||||
{
|
||||
FileType FileType { get; set; }
|
||||
|
||||
bool CanSave { get; set; }
|
||||
|
||||
string[] Description { get; set; }
|
||||
|
|
Loading…
Reference in a new issue