diff --git a/get_oodle/Cargo.toml b/oodle_loader/Cargo.toml similarity index 95% rename from get_oodle/Cargo.toml rename to oodle_loader/Cargo.toml index feb6ec8..188882d 100644 --- a/get_oodle/Cargo.toml +++ b/oodle_loader/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "get_oodle" +name = "oodle_loader" repository.workspace = true authors.workspace = true license.workspace = true diff --git a/get_oodle/section.bin b/oodle_loader/section.bin similarity index 100% rename from get_oodle/section.bin rename to oodle_loader/section.bin diff --git a/get_oodle/src/lib.rs b/oodle_loader/src/lib.rs similarity index 99% rename from get_oodle/src/lib.rs rename to oodle_loader/src/lib.rs index f0db0c3..58f2165 100644 --- a/get_oodle/src/lib.rs +++ b/oodle_loader/src/lib.rs @@ -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 } diff --git a/repak_cli/Cargo.toml b/repak_cli/Cargo.toml index 5156f5e..f084cfb 100644 --- a/repak_cli/Cargo.toml +++ b/repak_cli/Cargo.toml @@ -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 } diff --git a/repak_cli/src/main.rs b/repak_cli/src/main.rs index f824a3d..43ef79e 100644 --- a/repak_cli/src/main.rs +++ b/repak_cli/src/main.rs @@ -282,7 +282,7 @@ const STYLE: &str = "[{elapsed_precise}] [{wide_bar}] {pos}/{len} ({eta})"; fn unpack(aes_key: Option, 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, 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); }