Skip to content
GitLab
    • Explore Projects Groups Snippets
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • N nvidia-patch
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 26
    • Issues 26
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Keylase
  • nvidia-patch
  • Merge requests
  • !178

win: ap: update docs

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/Snawoot/doc_upd into master 5 years ago
  • Overview 1
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: Snawoot

Purpose of proposed changes

Add actual documentation for autopatch utility.

Essential steps taken

Markdown edit.

Compare
  • master (base)

and
  • latest version
    6ab29597
    1 commit, 2 years ago

1 file
+ 27
- 16

    Preferences

    File browser
    Compare changes
win/tools/autopatch/README.md
+ 27
- 16
  • View file @ 6ab29597

  • Edit in single-file editor

  • Open in Web IDE


@@ -3,7 +3,11 @@ autopatch
This tool is intended for internal usage.
This script accepts path to Nvidia Drivers installer, makes .1337 patch and saves it in appropriate location in your working copy of this repo. All you have to do then is to test patch, stage it for commit and push it. Optionally you can just save patch to stdout.
This script accepts path to Nvidia Drivers installer file(s), makes .1337 patch and saves it in appropriate location in your working copy of this repo. All you have to do then is to test patch, stage it for commit and push it. Optionally you can just save patch to stdout.
If you have already extracted binary files, you can supply them directly to autopatch running in direct mode `-D` option. In this case number of input files must match count of replacement patterns.
Note: when command line options with multiple possible arguments supplied (like patterns or targets), you must separate them from positional arguments (input files) with a double dash (`--`). Example: `./autopatch.py -P nvcuvid32.1337 nvcuvid64.1337 -T nvcuvid32.dll nvcuvid64.dll -- setup1.exe setup2.exe`.
## Requirements
@@ -13,9 +17,10 @@ This script accepts path to Nvidia Drivers installer, makes .1337 patch and save
## Synopsys
```
$ ./autopatch.py --help
usage: autopatch.py [-h] [-7 SEVENZIP] [-T TARGET] [-N TARGET_NAME]
[-S SEARCH] [-R REPLACEMENT] [-o]
usage: autopatch.py [-h] [-7 SEVENZIP] [-T TARGET [TARGET ...]]
[-N TARGET_NAME [TARGET_NAME ...]]
[-P PATCH_NAME [PATCH_NAME ...]] [-S SEARCH [SEARCH ...]]
[-R REPLACEMENT [REPLACEMENT ...]] [-o] [-D]
installer_file [installer_file ...]
Generates .1337 patch for Nvidia drivers for Windows
@@ -27,17 +32,23 @@ optional arguments:
-h, --help show this help message and exit
-7 SEVENZIP, --7zip SEVENZIP
location of 7-zip `7z` executable (default: 7z)
-T TARGET, --target TARGET
target location in archive (default:
Display.Driver/nvcuvid64.dl_)
-N TARGET_NAME, --target-name TARGET_NAME
name of installed target file. Used for patch header
(default: nvcuvid.dll)
-S SEARCH, --search SEARCH
representation of search pattern binary string
(default: FF908000000084C07408)
-R REPLACEMENT, --replacement REPLACEMENT
representation of replacement binary string (default:
FF908000000084C09090)
-T TARGET [TARGET ...], --target TARGET [TARGET ...]
target location(s) in archive (default:
['Display.Driver/nvcuvid64.dl_',
'Display.Driver/nvcuvid32.dl_'])
-N TARGET_NAME [TARGET_NAME ...], --target-name TARGET_NAME [TARGET_NAME ...]
name(s) of installed target file. Used for patch
header (default: ['nvcuvid.dll', 'nvcuvid.dll'])
-P PATCH_NAME [PATCH_NAME ...], --patch-name PATCH_NAME [PATCH_NAME ...]
relative filename(s) of generated patch(es) (default:
['nvcuvid64.1337', 'nvcuvid32.1337'])
-S SEARCH [SEARCH ...], --search SEARCH [SEARCH ...]
representation of search pattern(s) binary string
(default: ['FF909800000084C075', '8B404CFFD084C075'])
-R REPLACEMENT [REPLACEMENT ...], --replacement REPLACEMENT [REPLACEMENT ...]
representation of replacement(s) binary string
(default: ['FF90980000000C0175', '8B404CFFD00C0175'])
-o, --stdout output into stdout (default: False)
-D, --direct supply patched library directly instead of installer
file. Implies --stdout option. (default: False)
```
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Labels
1
dependencies
1
dependencies
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
0
0 participants
Reference: thoughtbot/administrate!2241
Source branch: github/fork/Snawoot/doc_upd

Menu

Explore Projects Groups Snippets