mirror of
https://github.com/XorTroll/EveryFileExplorer.git
synced 2024-11-26 19:30:26 +00:00
Support for BE Sarc Files (not tested yet)
This commit is contained in:
parent
ace5092ce5
commit
0e3958a0f7
@ -298,6 +298,9 @@
|
||||
<ItemGroup>
|
||||
<None Include="Resources\zones-stack.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="NintendoWare\H3D\" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>copy "$(TargetPath)" "$(SolutionDir)\EveryFileExplorer\bin\Debug\Plugins\$(TargetFileName)"</PostBuildEvent>
|
||||
|
@ -64,7 +64,7 @@ namespace _3DS
|
||||
{
|
||||
Signature = "SARC";
|
||||
HeaderSize = 0x14;
|
||||
Endianness = 0xFEFF;
|
||||
Endianness = 0xFFFE;//0xFEFF;
|
||||
FileSize = 0;
|
||||
FileDataOffset = 0;
|
||||
Unknown = 0x0100;
|
||||
@ -77,7 +77,9 @@ namespace _3DS
|
||||
{
|
||||
er.Write(Signature, Encoding.ASCII, false);
|
||||
er.Write(HeaderSize);
|
||||
er.Endianness = LibEveryFileExplorer.IO.Endianness.BigEndian;
|
||||
er.Write(Endianness);
|
||||
if (Endianness == 0xFFFE) er.Endianness = LibEveryFileExplorer.IO.Endianness.LittleEndian;
|
||||
er.Write(FileSize);
|
||||
er.Write(FileDataOffset);
|
||||
er.Write(Unknown);
|
||||
@ -86,7 +88,7 @@ namespace _3DS
|
||||
[BinaryFixedSize(4)]
|
||||
public String Signature;
|
||||
public UInt16 HeaderSize;
|
||||
//[BinaryBOM(0xFEFF)]
|
||||
[BinaryBOM(0xFFFE)]
|
||||
public UInt16 Endianness;
|
||||
public UInt32 FileSize;
|
||||
public UInt32 FileDataOffset;
|
||||
|
Loading…
Reference in New Issue
Block a user