Changed default endianness

for faster tests
It also is really weird since there are only a few bytes at the beginning of the file that are inverted
This commit is contained in:
Denis
2022-01-29 00:05:53 +01:00
parent 592dbac710
commit 363af89fb7
2 changed files with 4 additions and 3 deletions

View File

@@ -108,7 +108,8 @@ namespace BMGEditor
byte Byte2 = data[Read_Position + 1];
Read_Position += 2;
uint Dist = (uint)(((Byte1 & 0xF) << 8) | Byte2);
//uint Dist = (uint)(((Byte1 & 0xF) << 8) | Byte2);
uint Dist = (uint)(Byte2 | ((Byte1 & 0xF) << 8));
uint CopySource = (uint)(Write_Position - Dist - 1);
uint Byte_Count = (uint)(Byte1 >> 4);
@@ -119,7 +120,7 @@ namespace BMGEditor
}
else
{
Byte_Count += 1;
Byte_Count += 2;
}
for (int i = 0; i < Byte_Count; ++i)

View File

@@ -16,7 +16,7 @@ namespace BMGEditor
public static class Tests
{
//Not a good place to put this I know but I'm trying to figure it out
public static bool isBE = true;
public static bool isBE = false;
}
internal static class Program
{