Skip to content

Commit

Permalink
Beautify output and refactor
Browse files Browse the repository at this point in the history
* Also add -s (silent) and -v (options)
  • Loading branch information
pbatard committed Jul 30, 2020
1 parent 45ca175 commit 721acd8
Show file tree
Hide file tree
Showing 3 changed files with 144 additions and 112 deletions.
6 changes: 0 additions & 6 deletions .vs/winpatch.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
Expand All @@ -164,7 +163,6 @@
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
Expand All @@ -178,7 +176,6 @@
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
Expand All @@ -195,7 +192,6 @@
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
Expand All @@ -212,7 +208,6 @@
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
Expand All @@ -229,7 +224,6 @@
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Usage
-----

```
winpatch [-bhosw] FILE [HEXVAL HEXVAL [HEXVAL HEXVAL [...]]
winpatch [-bhiosvw] FILE [HEXVAL HEXVAL [HEXVAL HEXVAL [...]]
```

Where `HEXVAL`s are paired values containing the hexadecimal data to search for,
Expand All @@ -52,8 +52,10 @@ Options

* `-h`: Show help
* `-b`: __DON'T__ create a backup before patching the file (DANGEROUS).
* `-i`: Ignore patch values. Update the digital signature only.
* `-o`: Overwrite the source with the backup (if any) before patching.
* `-s`: Update the digital signature only (Don't patch).
* `-s`: Silent mode. No output except for errors.
* `-v`: Slightly more verbose output.
* `-w`: Don't warn when multiple instances of a patch are applied.

Example
Expand Down
Loading

0 comments on commit 721acd8

Please sign in to comment.