diff --git a/.vs/Switch_Toolbox/v15/.suo b/.vs/Switch_Toolbox/v15/.suo index a1bd6f3b..a155cd99 100644 Binary files a/.vs/Switch_Toolbox/v15/.suo and b/.vs/Switch_Toolbox/v15/.suo differ diff --git a/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide b/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide index bf72c788..99ab4f4d 100644 Binary files a/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide and b/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide differ diff --git a/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide-shm b/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide-shm index 541a460d..55f89ca0 100644 Binary files a/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide-shm and b/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide-shm differ diff --git a/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide-wal b/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide-wal index 7bf5ad83..e3684e05 100644 Binary files a/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide-wal and b/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide-wal differ diff --git a/Switch_FileFormatsMain/FileFormats/GMX/GMX.cs b/Switch_FileFormatsMain/FileFormats/GMX/GMX.cs new file mode 100644 index 00000000..a6a9dc00 --- /dev/null +++ b/Switch_FileFormatsMain/FileFormats/GMX/GMX.cs @@ -0,0 +1,53 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Switch_Toolbox; +using System.Windows.Forms; +using Switch_Toolbox.Library; + +namespace FirstPlugin +{ + public class GMX : IFileFormat + { + public FileType FileType { get; set; } = FileType.Model; + + public bool CanSave { get; set; } + public string[] Description { get; set; } = new string[] { "GMX" }; + public string[] Extension { get; set; } = new string[] { "*.gmx" }; + public string FileName { get; set; } + public string FilePath { get; set; } + public IFileInfo IFileInfo { get; set; } + + public bool Identify(System.IO.Stream stream) + { + using (var reader = new Switch_Toolbox.Library.IO.FileReader(stream, true)) + { + return reader.CheckSignature(4, "GMX2"); + } + } + + public Type[] Types + { + get + { + List types = new List(); + return types.ToArray(); + } + } + + public void Load(System.IO.Stream stream) + { + + } + public void Unload() + { + + } + public byte[] Save() + { + return null; + } + } +} diff --git a/Switch_FileFormatsMain/GUI/BFRES/BfresModelImportSettings.cs b/Switch_FileFormatsMain/GUI/BFRES/BfresModelImportSettings.cs index d45cdff3..b268f318 100644 --- a/Switch_FileFormatsMain/GUI/BFRES/BfresModelImportSettings.cs +++ b/Switch_FileFormatsMain/GUI/BFRES/BfresModelImportSettings.cs @@ -327,12 +327,12 @@ namespace FirstPlugin comboBoxFormatUvs.Items.Add(AttribFormat.Format_8_8_UNorm); comboBoxFormatUvs.SelectedIndex = 1; - comboBoxFormatVertexColors.Items.Add(AttribFormat.Format_32_32_Single); - comboBoxFormatVertexColors.Items.Add(AttribFormat.Format_16_16_Single); - comboBoxFormatVertexColors.Items.Add(AttribFormat.Format_16_16_SNorm); - comboBoxFormatVertexColors.Items.Add(AttribFormat.Format_10_10_10_2_SNorm); - comboBoxFormatVertexColors.Items.Add(AttribFormat.Format_8_8_SNorm); - comboBoxFormatVertexColors.SelectedIndex = 3; + comboBoxFormatTangents.Items.Add(AttribFormat.Format_32_32_32_32_Single); + comboBoxFormatVertexColors.Items.Add(AttribFormat.Format_16_16_16_16_Single); + comboBoxFormatVertexColors.Items.Add(AttribFormat.Format_16_16_16_16_SNorm); + comboBoxFormatVertexColors.Items.Add(AttribFormat.Format_8_8_8_8_UNorm); + comboBoxFormatVertexColors.Items.Add(AttribFormat.Format_8_8_8_8_SNorm); + comboBoxFormatVertexColors.SelectedIndex = 1; comboBoxFormatFaces.Items.Add(IndexFormat.UInt16); comboBoxFormatFaces.Items.Add(IndexFormat.UInt32); diff --git a/Switch_FileFormatsMain/Switch_FileFormatsMain.csproj b/Switch_FileFormatsMain/Switch_FileFormatsMain.csproj index 16d6572a..9b3277a3 100644 --- a/Switch_FileFormatsMain/Switch_FileFormatsMain.csproj +++ b/Switch_FileFormatsMain/Switch_FileFormatsMain.csproj @@ -245,6 +245,7 @@ + diff --git a/Switch_FileFormatsMain/obj/Release/DesignTimeResolveAssemblyReferences.cache b/Switch_FileFormatsMain/obj/Release/DesignTimeResolveAssemblyReferences.cache index 22699e70..63adb269 100644 Binary files a/Switch_FileFormatsMain/obj/Release/DesignTimeResolveAssemblyReferences.cache and b/Switch_FileFormatsMain/obj/Release/DesignTimeResolveAssemblyReferences.cache differ