Fix required

This commit is contained in:
Bryce Wilkinson 2023-10-23 00:07:58 -04:00
parent 745684792d
commit 817d9118a6
2 changed files with 6 additions and 11 deletions

View File

@ -2,16 +2,11 @@
# cs2-dumper
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)
# Running The Application
Within CMD run:
`cs2_dumper --argument value --argument...`
`cs2_dumper --path generated`
## Available Arguments
| 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: |
| 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: |
| path | String | Folder name for dumped assets | True | :heavy_check_mark: |
| interfaces | bool | Dump Interfaces | True | :heavy_multiplication_x: |
| path | String | Folder name for Generated Files| True | :heavy_check_mark: |
| verbose | bool | Print Debug Logging | False | :heavy_multiplication_x: |
# License

View File

@ -22,7 +22,7 @@ mod remote;
mod sdk;
#[derive(Debug, Parser)]
#[command(author, version, about, long_about = None)]
#[command(author, version, about)]
struct Args {
#[arg(short, long)]
interfaces: bool,
@ -33,7 +33,7 @@ struct Args {
#[arg(short, long)]
schemas: bool,
#[arg(short, long)]
#[arg(short, long, default_value = "all")]
dbuilders: String,
#[arg(short, long)]
@ -74,7 +74,7 @@ fn main() -> Result<()> {
let mut active_builders: Vec<FileBuilderEnum> = Vec::new();
if dbuilders.len() == 0 {
if dbuilders == "all" {
active_builders = vec![
FileBuilderEnum::CppFileBuilder(CppFileBuilder),
FileBuilderEnum::CSharpFileBuilder(CSharpFileBuilder),