39 Commits

Author SHA1 Message Date
91ba3b9406 Moved dcb_drv::find_entry to DirPtr::find. 2021-06-04 20:54:38 +01:00
3828aeec9b Components now iterates over Component. 2021-06-04 20:37:04 +01:00
1fa7dffddf Added PathBuf.
`Path` now implements `Index` and `Display`.
`FindError::ExpectedDir` now returns the path it expected to be a directory.
2021-06-04 19:50:04 +01:00
0c7068b64c Greatly simplified swap_files implementation. 2021-06-04 19:34:18 +01:00
ad29a12470 find_entry now returns the entry pointer. 2021-06-04 19:26:39 +01:00
d56755380a Added some documentation on how to use the api. 2021-06-04 19:18:50 +01:00
bd7f814be6 Updated and fixed some documentation on dcb-drv. 2021-06-04 19:14:20 +01:00
982393bd64 DirEntry now implements Bytes. 2021-06-04 19:06:35 +01:00
cd31c9d8ca Added DirEntryPtr. 2021-06-04 18:37:38 +01:00
41a05b61fa dcb_util::array_split_{mut} is now qualified to with it's crate, instead of importing it. 2021-06-04 18:24:19 +01:00
47736dabb8 Renamed methods and types in Bytes. 2021-06-02 13:51:45 +01:00
b84d5b67c5 Fixed Path::split_last. 2021-05-29 01:49:08 +01:00
c3ff6dfa33 dcb_drv::Path::components now properly works and no longer returns the indeces.
Fixed `DirPtr::find_entry` not considering files properly.
Added `GameFile::swap_files`.
`dcb-file-editor` now supports swapping.
2021-05-28 04:11:53 +01:00
a3bb00cb6a Removed dcb_drv::cursor.
Added `dcb_drv::{find_entry, swap_files}`.
Added `DirPtr::{find_entry, write_entry}`.
2021-05-28 02:55:07 +01:00
f8d9d6f6ce Documented dcb-drv slightly. 2021-05-27 23:30:09 +01:00
252330391b DirWriterLister now requires an ExactSizeIterator.
`DirWriter::write` now doesn't collect all entries initially.
2021-05-27 22:57:53 +01:00
136af25359 Moved all of the writing infrastructure of dcb_drv to dcb_drc::writer. 2021-05-27 22:00:47 +01:00
7bc80530cf Added minimal file swapping in dcb_drv.
Added `dcb_drv::Path`.
2021-05-27 19:07:34 +01:00
7ffb8f3a69 Now storing all files and directories in each cursor. 2021-05-26 23:16:07 +01:00
7603a201eb Removed DirWriterLister::entries_len. 2021-05-26 22:39:38 +01:00
cc22fb36c2 Moved DirEntryWriter::to_bytes to DirEntry.
Renamed `DirEntry::entries` to `DirEntry::read_entries`.
2021-05-26 22:24:58 +01:00
9add91abbc Moved everything in dcb_drv::new to root. 2021-05-25 23:55:57 +01:00
6e466534c0 Removed dcb_drv::*Reader. 2021-05-25 23:51:32 +01:00
0b19e53769 dcb_drv::cursor now uses the new module. 2021-05-25 23:40:39 +01:00
5b36ca95ac Added dcb_drv::new to eventually replace all of dcb_drv 2021-05-25 23:19:51 +01:00
a349a81d51 Added io::{Read, Seek, Write} impl for opened drv files. 2021-05-22 23:48:24 +01:00
69236ca742 Added the ability for DrvFsCursor and GameFile to open files. 2021-05-22 23:45:21 +01:00
7bde99906a Added minimal drv cursor implementation. 2021-05-22 22:22:05 +01:00
3485d10e21 Removed unnecessary features flags. 2021-04-29 15:20:28 +01:00
53963b5a7e Switched to a 120 max width. 2021-04-26 18:07:33 +01:00
2e44a3e382 clippy::map_err_ignore is now allowed. 2021-04-25 09:46:24 +01:00
4076e2a18b Added clippy::if_not_else to allowed lints. 2021-04-22 20:08:58 +01:00
de556f37da Added an allow of clippy::single_match_else. 2021-04-19 22:48:06 +01:00
991fa6ecce Fixed all documentation errors.
Renamed some errors to their function's name.
2021-04-10 05:41:58 +01:00
81e64fda75 Slightly updated documentation on dcb-drv. 2021-03-31 21:00:05 +01:00
1e32cd345e Fixed returning an error when encountering special file names in drv.
Added `fmt_err_wrapper` helper to `dcb-utils`.
2021-03-28 20:40:59 +01:00
c10316b531 Updated to version 1.52.0-nightly. 2021-03-16 20:40:19 +00:00
7cba0aa52c Updated lints and features to 1.52.0-nightly. 2021-03-11 16:01:19 +00:00
66f981d63f Moved drv and pak from dcb-io into their own crates. 2021-01-27 20:44:23 +00:00