Make clut and texture pos optional

This commit is contained in:
jaby 2024-12-29 14:43:06 +01:00
parent 1eeed73c5f
commit 542669470a
3 changed files with 9 additions and 3 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "psxfileconv"
version = "0.8.5"
version = "0.8.6"
edition = "2021"
[profile.release]

View File

@ -32,6 +32,12 @@ impl std::default::Default for Point {
}
}
impl ToString for Point {
fn to_string(&self) -> std::string::String {
"{0,0}".to_owned()
}
}
impl FromStr for Point {
type Err = String;

View File

@ -11,10 +11,10 @@ pub struct Arguments {
#[clap(flatten)]
global: super::args::Arguments,
#[clap(long, value_parser, value_name = Point::POINT_VALUE_NAME)]
#[clap(long, value_parser, default_value_t, value_name = Point::POINT_VALUE_NAME)]
clut_pos: Point,
#[clap(long, value_parser, value_name = Point::POINT_VALUE_NAME)]
#[clap(long, value_parser, default_value_t, value_name = Point::POINT_VALUE_NAME)]
tex_pos: Point,
}