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:
@@ -108,7 +108,8 @@ namespace BMGEditor
|
|||||||
byte Byte2 = data[Read_Position + 1];
|
byte Byte2 = data[Read_Position + 1];
|
||||||
Read_Position += 2;
|
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 CopySource = (uint)(Write_Position - Dist - 1);
|
||||||
|
|
||||||
uint Byte_Count = (uint)(Byte1 >> 4);
|
uint Byte_Count = (uint)(Byte1 >> 4);
|
||||||
@@ -119,7 +120,7 @@ namespace BMGEditor
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Byte_Count += 1;
|
Byte_Count += 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < Byte_Count; ++i)
|
for (int i = 0; i < Byte_Count; ++i)
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ namespace BMGEditor
|
|||||||
public static class Tests
|
public static class Tests
|
||||||
{
|
{
|
||||||
//Not a good place to put this I know but I'm trying to figure it out
|
//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
|
internal static class Program
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user