mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[ALL] Stop using "using" for everything except databases
This commit is contained in:
@@ -101,16 +101,17 @@ namespace SabreTools
|
||||
|
||||
// Now take care of the header and new output file
|
||||
string hstr = string.Empty;
|
||||
using (BinaryReader br = new BinaryReader(File.OpenRead(file)))
|
||||
BinaryReader br = new BinaryReader(File.OpenRead(file));
|
||||
|
||||
// Extract the header as a string for the database
|
||||
byte[] hbin = br.ReadBytes(headerSize);
|
||||
for (int i = 0; i < headerSize; i++)
|
||||
{
|
||||
// Extract the header as a string for the database
|
||||
byte[] hbin = br.ReadBytes(headerSize);
|
||||
for (int i = 0; i < headerSize; i++)
|
||||
{
|
||||
hstr += BitConverter.ToString(new byte[] { hbin[i] });
|
||||
}
|
||||
hstr += BitConverter.ToString(new byte[] { hbin[i] });
|
||||
}
|
||||
|
||||
br.Dispose();
|
||||
|
||||
// Then find an apply the exact rule to the file
|
||||
SkipperRule rule = Skippers.MatchesSkipper(file, "", _logger);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user