Skip to content

Commit 1148591

Browse files
committed
Fix issues with new library versions
1 parent ea50c55 commit 1148591

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Headerer/Extract.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public static bool DetectTransformStore(string file, string? outDir, bool nostor
4343
int startOffset = int.Parse(rule.StartOffset ?? "0");
4444
byte[] hbin = new byte[startOffset];
4545
int bytes = fs.Read(hbin, 0, startOffset);
46-
hstr = ByteArrayExtensions.ByteArrayToString(hbin)!;
46+
hstr = hbin.ToHexString()!;
4747
}
4848
catch
4949
{

Headerer/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class Program
99
public static void Main(string[] args)
1010
{
1111
// Validate the arguments
12-
if (args == null || args.Length == 0)
12+
if (args.Length == 0)
1313
{
1414
Options.DisplayHelp("One input file path required");
1515
return;

Headerer/Restore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static bool RestoreHeader(string file, string? outDir, bool debug = false
3636
{
3737
string outputFile = (string.IsNullOrWhiteSpace(outDir) ? $"{Path.GetFullPath(file)}.new" : Path.Combine(outDir, Path.GetFileName(file))) + i;
3838
Console.WriteLine($"Creating reheadered file: {outputFile}");
39-
AppendBytes(file, outputFile, ByteArrayExtensions.StringToByteArray(headers[i]), null);
39+
AppendBytes(file, outputFile, headers[i].FromHexString(), null);
4040
Console.WriteLine("Reheadered file created!");
4141
}
4242

0 commit comments

Comments
 (0)