fix pointless check
parent
9e31f6e498
commit
0acfa18abd
|
@ -38,11 +38,7 @@ fn make_wav(fname: &str, snd: &impl Sound) -> ResultS<()>
|
||||||
fn process_wad(opt: &Options, b: &[u8]) -> ResultS<()>
|
fn process_wad(opt: &Options, b: &[u8]) -> ResultS<()>
|
||||||
{
|
{
|
||||||
let wad = map::read(b)?;
|
let wad = map::read(b)?;
|
||||||
|
make_yaml(opt, &wad)?;
|
||||||
if opt.wad_wrt_all {
|
|
||||||
make_yaml(opt, &wad)?;
|
|
||||||
}
|
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -185,11 +181,6 @@ fn main() -> ResultS<()>
|
||||||
StoreTrue,
|
StoreTrue,
|
||||||
"snd: Dump all sounds to WAVE files");
|
"snd: Dump all sounds to WAVE files");
|
||||||
|
|
||||||
arg!("--wad-write-all",
|
|
||||||
opt.wad_wrt_all,
|
|
||||||
StoreTrue,
|
|
||||||
"wad: Dump all known chunks");
|
|
||||||
|
|
||||||
arg!("--out-dir",
|
arg!("--out-dir",
|
||||||
opt.out_dir,
|
opt.out_dir,
|
||||||
Store,
|
Store,
|
||||||
|
@ -248,7 +239,6 @@ struct Options
|
||||||
shp_frm: bool,
|
shp_frm: bool,
|
||||||
shp_seq: bool,
|
shp_seq: bool,
|
||||||
snd_dump: bool,
|
snd_dump: bool,
|
||||||
wad_wrt_all: bool,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// EOF
|
// EOF
|
||||||
|
|
Loading…
Reference in New Issue