ps3dec/
args.rs

1
2#[derive(Debug, clap::Parser)]
3#[clap(
4    author, version,
5    about = "PS3dec Remake is a remake of the original PS3 DISC decryption tool in rust",
6    long_about = "PS3Dec is a tool to decrypt PS3 Redump ISOs..."
7)]
8pub struct Ps3decargs {
9    #[clap(help = "Path to the PS3 ISO file to decrypt.")]
10    pub iso: String,
11
12    #[clap(short = 'k', long = "dk", help = "Decryption key (32 hex).", conflicts_with = "auto")]
13    pub dk: Option<String>,
14
15    #[clap(short = 't', long = "tc", help = "Thread count.", default_value = "32")]
16    pub tc: usize,
17
18    #[clap(short, long, help = "Autodetect key from ISO name.", action = clap::ArgAction::SetTrue)]
19    pub auto: bool,
20
21    #[clap(short = 's', long = "skip", help = "Skip exit confirmation.", action = clap::ArgAction::SetTrue)]
22    pub skip: bool,
23
24    #[clap(short = 'o', long = "output-dir", help = "Output directory.")]
25    pub output_dir: Option<String>,
26
27    #[clap(short = 'n', long = "output-name", help = "Output filename (without extension).")]
28    pub output_name: Option<String>,
29
30    #[clap(long = "chunk-size", help = "Chunk size in MiB.")]
31    pub chunk_size: Option<usize>,
32}
33
34
35
36pub const DEFAULT_CHUNK: Option<usize> = Some(16 * 1024 * 1024);