From ce6e30f7272fd0c064ef52ac85cad1c0f05fd323 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Tue, 10 Feb 2026 08:26:49 +0000 Subject: feat: добавить библиотеку common с ресурсами и буферами вывода; обновить зависимости в nres и rsli MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/nres/src/error.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crates/nres/src/error.rs') diff --git a/crates/nres/src/error.rs b/crates/nres/src/error.rs index a6f078f..0a4dbbe 100644 --- a/crates/nres/src/error.rs +++ b/crates/nres/src/error.rs @@ -19,6 +19,9 @@ pub enum Error { InvalidEntryCount { got: i32, }, + TooManyEntries { + got: usize, + }, DirectoryOutOfBounds { directory_offset: u64, directory_len: u64, @@ -65,6 +68,7 @@ impl fmt::Display for Error { write!(f, "NRes total_size mismatch: header={header}, actual={actual}") } Error::InvalidEntryCount { got } => write!(f, "invalid entry_count: {got}"), + Error::TooManyEntries { got } => write!(f, "too many entries: {got} exceeds u32::MAX"), Error::DirectoryOutOfBounds { directory_offset, directory_len, -- cgit v1.2.3