mirror of
https://github.com/pcvolkmer/osc-variant.git
synced 2025-04-19 19:56:50 +00:00
chore: remove underscore
This commit is contained in:
parent
310366bed7
commit
3bf5747387
@ -89,7 +89,7 @@ impl InputFile {
|
|||||||
.to_string()
|
.to_string()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn read(filename: String, _password: Option<String>) -> Result<Self, FileError> {
|
pub fn read(filename: String, password: Option<String>) -> Result<Self, FileError> {
|
||||||
if let Some(extension) = Path::new(filename.as_str()).extension() {
|
if let Some(extension) = Path::new(filename.as_str()).extension() {
|
||||||
return match extension.to_str() {
|
return match extension.to_str() {
|
||||||
Some("osc") => match fs::read_to_string(filename.clone()) {
|
Some("osc") => match fs::read_to_string(filename.clone()) {
|
||||||
@ -114,7 +114,7 @@ impl InputFile {
|
|||||||
|
|
||||||
let mut result = vec![];
|
let mut result = vec![];
|
||||||
|
|
||||||
let password = _password.unwrap_or_else(|| deobfuscate(env!("OSB_KEY").trim()));
|
let password = password.unwrap_or_else(|| deobfuscate(env!("OSB_KEY").trim()));
|
||||||
|
|
||||||
for i in 0..archive.len() {
|
for i in 0..archive.len() {
|
||||||
if let Ok(mut zip_file) = archive.by_index_decrypt(i, password.as_bytes()) {
|
if let Ok(mut zip_file) = archive.by_index_decrypt(i, password.as_bytes()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user