Skip to content

Commit 53c8ec1

Browse files
committed
Whitespace and usings cleanup
1 parent c68f126 commit 53c8ec1

17 files changed

Lines changed: 23 additions & 24 deletions

BinaryObjectScanner/FileType/DetectableBaseT.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System;
21
using BinaryObjectScanner.Interfaces;
32
using SabreTools.Serialization.Interfaces;
43

BinaryObjectScanner/Packer/DotNetReactor.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
using BinaryObjectScanner.Interfaces;
2-
using SabreTools.Serialization.Wrappers;
3-
using System.Collections.Generic;
1+
using System.Collections.Generic;
2+
using BinaryObjectScanner.Interfaces;
43
using SabreTools.Matching;
54
using SabreTools.Matching.Content;
5+
using SabreTools.Serialization.Wrappers;
66

77
namespace BinaryObjectScanner.Packer
88
{

BinaryObjectScanner/Packer/MPRESS.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ public class MPRESS : IExecutableCheck<PortableExecutable>
1212
{
1313
// TODO: Confirm if both need to be present
1414
// TODO: Figure out how to get version
15-
15+
1616
if (exe.ContainsSection(".MPRESS1"))
17-
return "MPRESS";
17+
return "MPRESS";
1818
if (exe.ContainsSection(".MPRESS2"))
19-
return "MPRESS";
19+
return "MPRESS";
2020

2121
return null;
2222
}

BinaryObjectScanner/Packer/MicrosoftCABSFX.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class MicrosoftCABSFX : IExecutableCheck<PortableExecutable>
1717
return $"Microsoft CAB SFX {GetVersion(exe)}";
1818

1919
name = exe.OriginalFilename;
20-
20+
2121
if (name.OptionalEquals("WEXTRACT.EXE", StringComparison.OrdinalIgnoreCase))
2222
return $"Microsoft CAB SFX {GetVersion(exe)}";
2323

BinaryObjectScanner/Packer/SevenZipSFX.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class SevenZipSFX : IExecutableCheck<PortableExecutable>
2929
return "7-Zip SFX";
3030

3131
name = exe.InternalName;
32-
32+
3333
if (name.OptionalEquals("7z.sfx"))
3434
return "7-Zip SFX";
3535
else if (name.OptionalEquals("7zS.sfx"))

BinaryObjectScanner/Protection/EasyAntiCheat.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public class EasyAntiCheat : IExecutableCheck<PortableExecutable>, IPathCheck
5252
// "EasyAntiCheat Service" -> "EasyAntiCheat.exe", which is found installed in "Program Files (x86)\EasyAntiCheat" and "EasyAntiCheat_Setup.exe" ("Intruder", Update 2287, Steam).
5353

5454
name = exe.ProductName;
55-
55+
5656
// Found in multiple files, including "VideoHorrorSociety.exe" ("Video Horror Society", Patch 1.0.70309, Steam) and "start_protected_game.exe" ("VRChat", Version 2022.2.2p2, Oculus).
5757
if (!string.IsNullOrEmpty(name) && name!.Contains("Easy Anti-Cheat Bootstrapper (EOS)"))
5858
return "Easy Anti-Cheat (EOS Version)";

BinaryObjectScanner/Protection/ElectronicArts.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class ElectronicArts : IExecutableCheck<PortableExecutable>
2020
return $"EA DRM Protection {exe.GetInternalVersion()}";
2121

2222
name = exe.InternalName;
23-
23+
2424
if (name.OptionalEquals("CDCode", StringComparison.Ordinal))
2525
return $"EA CdKey Registration Module {exe.GetInternalVersion()}";
2626

BinaryObjectScanner/Protection/GFWL.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class GFWL : IExecutableCheck<PortableExecutable>, IPathCheck
1515
public string? CheckExecutable(string file, PortableExecutable exe, bool includeDebug)
1616
{
1717
string? name = exe.FileDescription;
18-
18+
1919
if (name.OptionalStartsWith("Games for Windows - LIVE Zero Day Piracy Protection", StringComparison.OrdinalIgnoreCase))
2020
return $"Games for Windows LIVE - Zero Day Piracy Protection Module {exe.GetInternalVersion()}";
2121
else if (name.OptionalStartsWith("Games for Windows", StringComparison.OrdinalIgnoreCase))

BinaryObjectScanner/Protection/ImpulseReactor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class ImpulseReactor : IExecutableCheck<PortableExecutable>, IPathCheck
2727
return $"Impulse Reactor Core Module {exe.GetInternalVersion()}";
2828

2929
name = exe.OriginalFilename;
30-
30+
3131
if (name.OptionalContains("ReactorActivate.exe"))
3232
return $"Stardock Product Activation {exe.GetInternalVersion()}";
3333

BinaryObjectScanner/Protection/InterLok.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ public class InterLok : IExecutableCheck<PortableExecutable>
2020
if (match != null)
2121
return $"PACE Anti-Piracy InterLok {GetVersion(match)}";
2222
}
23-
23+
2424
return null;
2525
}
26-
26+
2727
private static string GetVersion(string match)
2828
{
2929
var versionMatch = Regex.Match(match, @"(?<=InterLok )(.*?)(?=,)");
3030
if (versionMatch.Success)
3131
return versionMatch.Value;
32-
32+
3333
return "(Unknown Version - Please report to us on GitHub)";
3434
}
3535
}

0 commit comments

Comments
 (0)