Typo on base export path #96

Merged
Dandaedre merged 1 commits from database_monsters into main 2026-07-17 03:03:35 +02:00
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ pub struct MonsterConfig {
pub target: MonsterTarget,
/// A special export path
#[arg(long, default_value = "./Monsters")]
#[arg(long, default_value = "./Bestiaire/")]
pub destination: String,
/// Database to load from

View File

@ -127,12 +127,12 @@ pub fn generate_monsters_tex(
if args.player || args.all {
println!("Generating player bestiaire");
let mut f = File::create(format!("{}/player_bestiaire.tex", args.destination))?;
let mut f = File::create(format!("./{}/player_bestiaire.tex", args.destination))?;
write!(f, "{}", player_out)?;
}
if args.master || args.all {
println!("Generating master bestiaire");
let mut f = File::create(format!("{}/master_bestiaire.tex", args.destination))?;
let mut f = File::create(format!("./{}/master_bestiaire.tex", args.destination))?;
write!(f, "{}", player_out)?;
write!(f, "{}", master_out)?;
}