Clean pipeline: one open, one init, no double-init

- Removed open_unlocked() — open() is the only entry
- Removed redundant init() call from open_title()
- init() called once in open(), handles everything
- Each function does one thing: open→init→scan→read
This commit is contained in:
MattJackson
2026-04-08 21:35:48 -07:00
parent 490c597995
commit 97407570ed
3 changed files with 20 additions and 27 deletions
+1 -3
View File
@@ -798,9 +798,7 @@ impl Disc {
detail: format!("title index {} out of range (have {})", title_idx, self.titles.len()),
})?;
if !session.is_unlocked() {
let _ = session.init();
}
// init() already called by DriveSession::open(). No re-init needed.
let speed_cdb = crate::scsi::build_set_cd_speed(0xFFFF);
let mut dummy = [0u8; 0];