Browse Source

Cue sheet: use FILE "*.raw" instead of "*.nrg"

master
Matteo Cypriani 3 years ago
parent
commit
76c2a9201f
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/cue_sheet.rs

+ 5
- 1
src/cue_sheet.rs View File

@@ -64,9 +64,13 @@ pub fn write_cue_sheet(img_path: &str, metadata: &NrgMetadata)
}
cue_name.set_extension("cue");

// Set the raw audio file's name
let mut raw_name = cue_name.clone();
raw_name.set_extension("raw");

// Write cue sheet
let mut fd = try!(File::create(cue_name));
try!(writeln!(fd, "FILE \"{}\" BINARY", img_name.to_string_lossy()));
try!(writeln!(fd, "FILE \"{}\" BINARY", raw_name.to_string_lossy()));
try!(write_cue_tracks(&mut fd, cuex_tracks));

Ok(())


Loading…
Cancel
Save