diff options
| author | Valentin Popov <valentin@popov.link> | 2026-02-10 11:26:49 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-02-10 11:26:49 +0300 |
| commit | ce6e30f7272fd0c064ef52ac85cad1c0f05fd323 (patch) | |
| tree | b493ba02b81a8a4759f44560c1fd5951b84428e1 /crates/nres/src/error.rs | |
| parent | 4af183ad74bfaafa0dc9db8116d361582debe536 (diff) | |
| download | fparkan-ce6e30f7272fd0c064ef52ac85cad1c0f05fd323.tar.xz fparkan-ce6e30f7272fd0c064ef52ac85cad1c0f05fd323.zip | |
feat: добавить библиотеку common с ресурсами и буферами вывода; обновить зависимости в nres и rsli
Diffstat (limited to 'crates/nres/src/error.rs')
| -rw-r--r-- | crates/nres/src/error.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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, |
