Browse Source

Use parser crate rather than env var

pull/17/head
Andrea Ciliberti 3 years ago
parent
commit
402e7af28a
  1. 7
      src/main.rs

7
src/main.rs

@ -296,9 +296,14 @@ fn get_metadata(messages: &[Message]) -> CTRConfig {
_ => artifact.target.name, _ => artifact.target.name,
}; };
let author = match package.authors.as_slice() {
[name, ..] => name.to_owned(),
[] => String::from("Unspecified Author"), // as standard with the devkitPRO toolchain
};
CTRConfig { CTRConfig {
name, name,
author: package.authors[0].clone(), author,
description: package description: package
.description .description
.clone() .clone()

Loading…
Cancel
Save