mirror of
https://github.com/a2x/cs2-dumper.git
synced 2025-05-13 22:35:34 +08:00
Fix required
This commit is contained in:
parent
745684792d
commit
817d9118a6
11
README.md
11
README.md
@ -2,16 +2,11 @@
|
|||||||
# cs2-dumper
|
# cs2-dumper
|
||||||
External offsets/interfaces dumper for Counter-Strike: 2, written in Rust.
|
External offsets/interfaces dumper for Counter-Strike: 2, written in Rust.
|
||||||
|
|
||||||
|
|
||||||
# Generated Files
|
|
||||||
|
|
||||||
Generated files are stored in the `generated` directory.
|
|
||||||
|
|
||||||
📂 [Pre-generated Files](./generated)
|
📂 [Pre-generated Files](./generated)
|
||||||
|
|
||||||
# Running The Application
|
# Running The Application
|
||||||
Within CMD run:
|
Within CMD run:
|
||||||
`cs2_dumper --argument value --argument...`
|
`cs2_dumper --path generated`
|
||||||
|
|
||||||
## Available Arguments
|
## Available Arguments
|
||||||
| Argument | Type | Description | Default Value | Required
|
| Argument | Type | Description | Default Value | Required
|
||||||
@ -20,8 +15,8 @@ Generated files are stored in the `generated` directory.
|
|||||||
| offsets | bool | Dump Offsets | True | :heavy_multiplication_x: |
|
| offsets | bool | Dump Offsets | True | :heavy_multiplication_x: |
|
||||||
| schemas | bool | Dump Schemas | True | :heavy_multiplication_x: |
|
| schemas | bool | Dump Schemas | True | :heavy_multiplication_x: |
|
||||||
| dbuilders | String | Comma Separated String **without spaces** specifying the output file formats. Available Builders: [JSON, CPP, CSharp, Python, Rust] | Blank (All) | :heavy_multiplication_x: |
|
| dbuilders | String | Comma Separated String **without spaces** specifying the output file formats. Available Builders: [JSON, CPP, CSharp, Python, Rust] | Blank (All) | :heavy_multiplication_x: |
|
||||||
| path | String | Folder name for dumped assets | True | :heavy_check_mark: |
|
| path | String | Folder name for Generated Files| True | :heavy_check_mark: |
|
||||||
| interfaces | bool | Dump Interfaces | True | :heavy_multiplication_x: |
|
| verbose | bool | Print Debug Logging | False | :heavy_multiplication_x: |
|
||||||
|
|
||||||
|
|
||||||
# License
|
# License
|
||||||
|
@ -22,7 +22,7 @@ mod remote;
|
|||||||
mod sdk;
|
mod sdk;
|
||||||
|
|
||||||
#[derive(Debug, Parser)]
|
#[derive(Debug, Parser)]
|
||||||
#[command(author, version, about, long_about = None)]
|
#[command(author, version, about)]
|
||||||
struct Args {
|
struct Args {
|
||||||
#[arg(short, long)]
|
#[arg(short, long)]
|
||||||
interfaces: bool,
|
interfaces: bool,
|
||||||
@ -33,7 +33,7 @@ struct Args {
|
|||||||
#[arg(short, long)]
|
#[arg(short, long)]
|
||||||
schemas: bool,
|
schemas: bool,
|
||||||
|
|
||||||
#[arg(short, long)]
|
#[arg(short, long, default_value = "all")]
|
||||||
dbuilders: String,
|
dbuilders: String,
|
||||||
|
|
||||||
#[arg(short, long)]
|
#[arg(short, long)]
|
||||||
@ -74,7 +74,7 @@ fn main() -> Result<()> {
|
|||||||
let mut active_builders: Vec<FileBuilderEnum> = Vec::new();
|
let mut active_builders: Vec<FileBuilderEnum> = Vec::new();
|
||||||
|
|
||||||
|
|
||||||
if dbuilders.len() == 0 {
|
if dbuilders == "all" {
|
||||||
active_builders = vec![
|
active_builders = vec![
|
||||||
FileBuilderEnum::CppFileBuilder(CppFileBuilder),
|
FileBuilderEnum::CppFileBuilder(CppFileBuilder),
|
||||||
FileBuilderEnum::CSharpFileBuilder(CSharpFileBuilder),
|
FileBuilderEnum::CSharpFileBuilder(CSharpFileBuilder),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user