[Args] Accept args for draw scale and new chip8 behaviour
This commit is contained in:
@@ -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
|
||||
}
|
Reference in New Issue
Block a user