mirror of
https://github.com/xavo95/repak.git
synced 2025-01-18 10:54:38 +00:00
Rename get_oodle -> oodle_loader
This commit is contained in:
parent
cb7743e347
commit
95b4f35b0d
5 changed files with 6 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
[package]
|
||||
name = "get_oodle"
|
||||
name = "oodle_loader"
|
||||
repository.workspace = true
|
||||
authors.workspace = true
|
||||
license.workspace = true
|
|
@ -26,7 +26,7 @@ pub fn decompress() -> OodleDecompress {
|
|||
#[cfg(windows)]
|
||||
return windows_oodle::decompress_wrapper_windows;
|
||||
#[cfg(unix)]
|
||||
return linux_oodle::get_oodle_linux();
|
||||
return linux_oodle::oodle_loader_linux();
|
||||
}
|
||||
|
||||
fn call_decompress(comp_buf: &[u8], raw_buf: &mut [u8], decompress: OodleLZ_Decompress) -> i32 {
|
||||
|
@ -234,7 +234,7 @@ mod linux_oodle {
|
|||
array
|
||||
}
|
||||
|
||||
pub fn get_oodle_linux() -> OodleDecompress {
|
||||
pub fn oodle_loader_linux() -> OodleDecompress {
|
||||
DECOMPRESS.get_or_init(|| get_decompress_inner().unwrap());
|
||||
decompress_wrapper
|
||||
}
|
|
@ -11,7 +11,7 @@ name = "repak"
|
|||
path = "src/main.rs"
|
||||
|
||||
[dependencies]
|
||||
get_oodle = { path = "../get_oodle" }
|
||||
oodle_loader = { path = "../oodle_loader" }
|
||||
repak = { path = "../repak", features = ["oodle"] }
|
||||
aes = { workspace = true }
|
||||
base64 = { workspace = true }
|
||||
|
|
|
@ -282,7 +282,7 @@ const STYLE: &str = "[{elapsed_precise}] [{wide_bar}] {pos}/{len} ({eta})";
|
|||
|
||||
fn unpack(aes_key: Option<aes::Aes256>, action: ActionUnpack) -> Result<(), repak::Error> {
|
||||
for input in &action.input {
|
||||
let mut builder = repak::PakBuilder::new().oodle(get_oodle::decompress);
|
||||
let mut builder = repak::PakBuilder::new().oodle(oodle_loader::decompress);
|
||||
if let Some(aes_key) = aes_key.clone() {
|
||||
builder = builder.key(aes_key);
|
||||
}
|
||||
|
@ -453,7 +453,7 @@ fn pack(args: ActionPack) -> Result<(), repak::Error> {
|
|||
|
||||
fn get(aes_key: Option<aes::Aes256>, args: ActionGet) -> Result<(), repak::Error> {
|
||||
let mut reader = BufReader::new(File::open(&args.input)?);
|
||||
let mut builder = repak::PakBuilder::new().oodle(get_oodle::decompress);
|
||||
let mut builder = repak::PakBuilder::new().oodle(oodle_loader::decompress);
|
||||
if let Some(aes_key) = aes_key {
|
||||
builder = builder.key(aes_key);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue