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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user