[Args] Accept args for draw scale and new chip8 behaviour

This commit is contained in:
2024-03-05 20:15:09 +05:30
parent 62f33d5054
commit 9761f76c61
3 changed files with 19 additions and 15 deletions

View File

@@ -4,5 +4,9 @@ use clap::Parser;
#[command(version,about,author)]
pub struct Porcel8ProgramArgs {
#[arg(short,long,help = "Filename of ROM to load.")]
pub filename:Option<String>
pub filename:Option<String>,
#[arg(short,long,help = "Draw scale of window",default_value_t=8f32)]
pub draw_scale: f32,
#[arg(short,long,help = "Emulate new behaviour of instructions (As seen in Chip-48 and SuperChip8)",default_value_t=true)]
pub new_chip8_behaviour: bool
}