Skip to content

Commit

Permalink
Fix issues with new library versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mnadareski committed Nov 26, 2024
1 parent ea50c55 commit 1148591
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Headerer/Extract.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static bool DetectTransformStore(string file, string? outDir, bool nostor
int startOffset = int.Parse(rule.StartOffset ?? "0");
byte[] hbin = new byte[startOffset];
int bytes = fs.Read(hbin, 0, startOffset);
hstr = ByteArrayExtensions.ByteArrayToString(hbin)!;
hstr = hbin.ToHexString()!;
}
catch
{
Expand Down
2 changes: 1 addition & 1 deletion Headerer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class Program
public static void Main(string[] args)
{
// Validate the arguments
if (args == null || args.Length == 0)
if (args.Length == 0)
{
Options.DisplayHelp("One input file path required");
return;
Expand Down
2 changes: 1 addition & 1 deletion Headerer/Restore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static bool RestoreHeader(string file, string? outDir, bool debug = false
{
string outputFile = (string.IsNullOrWhiteSpace(outDir) ? $"{Path.GetFullPath(file)}.new" : Path.Combine(outDir, Path.GetFileName(file))) + i;
Console.WriteLine($"Creating reheadered file: {outputFile}");
AppendBytes(file, outputFile, ByteArrayExtensions.StringToByteArray(headers[i]), null);
AppendBytes(file, outputFile, headers[i].FromHexString(), null);
Console.WriteLine("Reheadered file created!");
}

Expand Down

0 comments on commit 1148591

Please sign in to comment.