From 842f4a85693b418af81560738aa3136ac500d9b1 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Tue, 10 Feb 2026 08:38:58 +0000 Subject: Implement LZSS decompression with optional XOR decryption - Added `lzss_decompress_simple` function for LZSS decompression in `lzss.rs`. - Introduced `XorState` struct and `xor_stream` function for XOR decryption in `xor.rs`. - Updated `mod.rs` to include new LZSS and XOR modules. - Refactored `parse_library` function in `parse.rs` to utilize the new XOR decryption functionality. - Cleaned up and organized code in `lib.rs` by removing redundant functions and structures. - Added tests for new functionality in `tests.rs`. --- crates/rsli/src/tests.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/rsli/src/tests.rs') diff --git a/crates/rsli/src/tests.rs b/crates/rsli/src/tests.rs index d6ff454..7ed16b1 100644 --- a/crates/rsli/src/tests.rs +++ b/crates/rsli/src/tests.rs @@ -1,4 +1,6 @@ use super::*; +use crate::compress::lzh::{LZH_MAX_FREQ, LZH_N_CHAR, LZH_R, LZH_T}; +use crate::compress::xor::xor_stream; use flate2::write::DeflateEncoder; use flate2::Compression; use std::any::Any; -- cgit v1.2.3