diff --git a/Content/UniversalEditor.Content.PlatformIndependent/Extensions/GameDeveloper/Associations/FileSystem/ElectronicArtsBIGF.uexml b/Content/UniversalEditor.Content.PlatformIndependent/Extensions/GameDeveloper/Extensions/ElectronicArts/Associations/FileSystem/BIGF.uexml similarity index 82% rename from Content/UniversalEditor.Content.PlatformIndependent/Extensions/GameDeveloper/Associations/FileSystem/ElectronicArtsBIGF.uexml rename to Content/UniversalEditor.Content.PlatformIndependent/Extensions/GameDeveloper/Extensions/ElectronicArts/Associations/FileSystem/BIGF.uexml index ae7834a2..1f2fda86 100644 --- a/Content/UniversalEditor.Content.PlatformIndependent/Extensions/GameDeveloper/Associations/FileSystem/ElectronicArtsBIGF.uexml +++ b/Content/UniversalEditor.Content.PlatformIndependent/Extensions/GameDeveloper/Extensions/ElectronicArts/Associations/FileSystem/BIGF.uexml @@ -3,7 +3,7 @@ - + *.abg *.ama @@ -18,11 +18,6 @@ *.hog *.viv" - - - BIGF - - diff --git a/Content/UniversalEditor.Content.PlatformIndependent/UniversalEditor.Content.PlatformIndependent.csproj b/Content/UniversalEditor.Content.PlatformIndependent/UniversalEditor.Content.PlatformIndependent.csproj index f06673b8..17193b5b 100644 --- a/Content/UniversalEditor.Content.PlatformIndependent/UniversalEditor.Content.PlatformIndependent.csproj +++ b/Content/UniversalEditor.Content.PlatformIndependent/UniversalEditor.Content.PlatformIndependent.csproj @@ -147,7 +147,6 @@ - @@ -712,6 +711,7 @@ + @@ -757,6 +757,9 @@ + + + diff --git a/Plugins/UniversalEditor.Plugins.FileSystem/DataFormats/FileSystem/ElectronicArts/BIGFDataFormat.cs b/Plugins/UniversalEditor.Plugins.FileSystem/DataFormats/FileSystem/ElectronicArts/BIGFDataFormat.cs index 5c8d56d2..66445951 100644 --- a/Plugins/UniversalEditor.Plugins.FileSystem/DataFormats/FileSystem/ElectronicArts/BIGFDataFormat.cs +++ b/Plugins/UniversalEditor.Plugins.FileSystem/DataFormats/FileSystem/ElectronicArts/BIGFDataFormat.cs @@ -57,6 +57,8 @@ namespace UniversalEditor.DataFormats.FileSystem.ElectronicArts IO.Writer bw = base.Accessor.Writer; bw.WriteFixedLengthString("BIGF"); + bw.Endianness = IO.Endianness.BigEndian; + uint archiveSize = 0; long archiveSizePos = bw.Accessor.Position; bw.WriteUInt32(archiveSize); @@ -75,10 +77,12 @@ namespace UniversalEditor.DataFormats.FileSystem.ElectronicArts bw.WriteUInt32(offset); bw.WriteUInt32((uint)file.Size); bw.WriteNullTerminatedString(file.Name); + + offset += (uint)file.Size; } foreach (File file in fsom.Files) { - file.WriteTo(bw); + bw.WriteBytes(file.GetData()); // file.WriteTo(bw); } } }