mirror of
https://github.com/SabreTools/MPF.git
synced 2026-04-06 06:11:31 +00:00
Bytes, not characters (fixes #952)
This commit is contained in:
@@ -53,6 +53,7 @@
|
||||
- Add retry override for MPF.CLI
|
||||
- Limit BCA read to 64 bytes for Redumper
|
||||
- Support more Redumper log outputs
|
||||
- Bytes, not characters
|
||||
|
||||
### 3.6.0 (2025-11-28)
|
||||
|
||||
|
||||
@@ -319,7 +319,7 @@ namespace MPF.Processors.Test
|
||||
[Fact]
|
||||
public void GetBCA_ValidPath_Formatted()
|
||||
{
|
||||
string expected = "0001 0203 0405 0607 0809 0A0B 0C0D 0E0F\n0001 0203 0405 0607 0809 0A0B 0C0D 0E0F\n";
|
||||
string expected = "0001 0203 0405 0607 0809 0A0B 0C0D 0E0F\n0001 0203 0405 0607 0809 0A0B 0C0D 0E0F\n0001 0203 0405 0607 0809 0A0B 0C0D 0E0F\n0001 0203 0405 0607 0809 0A0B 0C0D 0E0F\n";
|
||||
string bcaPath = Path.Combine(Environment.CurrentDirectory, "TestData", "Redumper", "DVD", "test.bca");
|
||||
|
||||
string? actual = Redumper.GetBCA(bcaPath);
|
||||
|
||||
@@ -902,8 +902,8 @@ namespace MPF.Processors
|
||||
if (hex is null)
|
||||
return null;
|
||||
|
||||
// Get the starting index to read at most the last 64 bytes
|
||||
int startingIndex = hex.Length >= 64 ? hex.Length - 64 : 0;
|
||||
// Get the starting index to read at most the last 64 bytes (128 characters)
|
||||
int startingIndex = hex.Length >= 128 ? hex.Length - 128 : 0;
|
||||
|
||||
// Separate into blocks of 4 hex digits and newlines
|
||||
var bca = new StringBuilder();
|
||||
|
||||
Reference in New Issue
Block a user