Update code

This commit is contained in:
a2x
2024-04-16 12:32:14 +10:00
parent 6406f88e0b
commit 45b7574975
157 changed files with 73646 additions and 117625 deletions

View File

@@ -1,6 +1,6 @@
# cs2-dumper
An external offset/interface dumper for Counter-Strike 2, with support for both Windows & Linux.
An external offset/interface dumper for Counter-Strike 2, with support for both Windows & Linux (soon).
Powered by [memflow](https://github.com/memflow/memflow).
@@ -13,23 +13,20 @@ toolchain must be installed.
## Usage
1. Ensure the game process is running (Being in the main menu should suffice).
2. Run the `cs2-dumper` executable.
- Note that some memflow connectors may require elevated privileges to work.
- Ensure that you have the appropriate config file in the same directory as the `cs2-dumper` executable:
- For Linux: `config_linux.json`
- For Windows: `config_win.json`
2. Run the `cs2-dumper` executable (Note that some memflow connectors may require elevated privileges to work).
When running the executable without providing an optional memflow connector name, it will default to using the [memflow-native](https://github.com/memflow/memflow-native) cross-platform OS layer to read the memory of the game process. If you wish to use an existing memflow connector instead, pass the `connector` and optional `connector-args` arguments to the program.
E.g. `./cs2-dumper -c kvm -vvv`
E.g. `./cs2-dumper -c pcileech -a device=fpga -vvv`
### Available Arguments
- `-v...`: Increase logging verbosity. Can be specified multiple times.
- `-c, --connector <connector>`: The name of the memflow connector to use.
- `-a, --connector-args <connector-args>`: Additional arguments to supply to the connector.
- `-a, --connector-args <connector-args>`: Additional arguments to pass to the connector.
- `-f, --file-types <file-types>`: The types of files to generate. Default: `cs`, `hpp`, `json`, `rs`.
- `-o, --output <output>`: The output directory to write the generated files to. Default: `output`.
- `-i, --indent-size <indent-size>`: The number of spaces to use per indentation level. Default: `4`.
- `-v...`: Increase logging verbosity. Can be specified multiple times.
- `-h, --help`: Print help.
- `-V, --version`: Print version.