Wire --raw through InputOptions to streams

set_raw() on IsoStream and DiscStream sets keys to None.
open_input passes raw flag to streams via InputOptions.
Streams skip decrypt when raw=true.
This commit is contained in:
MattJackson
2026-04-15 01:38:18 +00:00
parent 2e23e848df
commit e4ffe7cc91
3 changed files with 51 additions and 16 deletions
+5
View File
@@ -172,6 +172,11 @@ impl DiscStream {
}
}
/// Skip decryption — return raw encrypted bytes.
pub fn set_raw(&mut self) {
self.decrypt_keys = crate::decrypt::DecryptKeys::None;
}
/// Lock the tray.
pub fn lock_tray(&mut self) {
self.drive.lock_tray();