implement decrypt

This commit is contained in:
Carson McManus 2021-08-17 18:54:16 -04:00
parent 531e69ea88
commit f1158f9a3d

View file

@ -317,6 +317,12 @@ fn main() {
} }
manifest.save(&passkey).expect("Failed to save manifest."); manifest.save(&passkey).expect("Failed to save manifest.");
return; return;
} else if matches.is_present("decrypt") {
for entry in &mut manifest.entries {
entry.encryption = None;
}
manifest.save(&passkey).expect("Failed to save manifest.");
return;
} }
let mut selected_accounts: Vec<Arc<Mutex<SteamGuardAccount>>> = vec![]; let mut selected_accounts: Vec<Arc<Mutex<SteamGuardAccount>>> = vec![];