287 Commits

Author SHA1 Message Date
9961c92ff9 Renamed Filesystem to FilesystemReader. 2021-01-30 21:21:42 +00:00
edcd8b45e1 Slightly revised string types in dcb-iso9660. 2021-01-30 21:13:46 +00:00
66f981d63f Moved drv and pak from dcb-io into their own crates. 2021-01-27 20:44:23 +00:00
8e194e967d Fixed bug in PakFileReader's impl.
Made `pak-extractor` no longer log to file and makde it used buffered input.
2021-01-27 11:26:53 +00:00
4f2415b4a5 Improved .PAK reading. 2021-01-27 10:37:35 +00:00
529263d5d3 Removed some bounds on DirWriterLister by hand-implementing derives. 2021-01-27 09:25:55 +00:00
5504ace431 Moved DirWriterLister to it's own module.
Removed currently superfluous `DirList` associated type, as it cannot be used without creating an infinite type.
2021-01-27 09:02:02 +00:00
03eee9ee66 Added cdrom-xa-packer.
Added `dcb_cdrom_xa::writer`.
2021-01-26 20:54:12 +00:00
dbb556f408 Renamed CdRom to CdRomReader and moved it to it's own module. 2021-01-26 19:30:26 +00:00
beaab45aa4 Improved implementation and added documentation for subheader. 2021-01-26 19:24:08 +00:00
e22c5e3bdc Updated Address, now knowing it is bcd encoded. 2021-01-26 16:20:10 +00:00
426aadb9b8 Slightly refactored drv-packer. 2021-01-25 06:06:04 +00:00
db09f88a88 Refactored drv-extractor. 2021-01-25 05:59:26 +00:00
5fc311ff49 Made DirWriterLister now require the number of entries.
Refactored `drv-packer`.
2021-01-25 05:35:25 +00:00
1b3ca80cb3 Removed unnecessary error in drv. 2021-01-25 05:25:56 +00:00
20b3696635 Separated dir into a reader and writer. 2021-01-25 05:24:06 +00:00
24be074773 Documented entry a bit better. 2021-01-25 05:02:30 +00:00
df08fc85a6 Separated entry into two submodules for reader and writer. 2021-01-25 04:59:14 +00:00
21480ebb0e Made DirEntryReader return an Option when reading from bytes, instead of the caller checking for a specific error.
Improved documentation for `drv`.
2021-01-25 04:41:33 +00:00
1d6be27feb Fixed default extension being wrong in drv-packet. 2021-01-25 00:34:46 +00:00
3d54f23022 Improved DrvFsWriter interface by using the DirWriterList trait.
Fixed `DirWriter::write_entries` not writing all entries correctly.
Added `drv-packer` binary.
2021-01-25 00:23:12 +00:00
26972d128b Started work on .DRV filesystem writer. 2021-01-24 14:08:26 +00:00
15c2b5ac46 Improved implementation of Drv filesystem. 2021-01-24 12:31:20 +00:00
42b694ced0 Renamed DirEntry back, as it represents the dir entry itself on disk.
Added `to_bytes` implementation of `DirEntry`.
2021-01-24 11:46:05 +00:00
aa8f87ed64 Renamed some dcb_io::drv entries to reflect what they're doing better. 2021-01-24 11:20:40 +00:00
2c785bf73d drv-extractor now respects the dates of the files.
Added `DirEntry::seek_to`.
2021-01-24 10:48:09 +00:00
9222ef40d6 Changed the Bytes derive to have endianess per-field.
Started using the new derive.
2021-01-24 10:19:22 +00:00
792b1d365c Improved dcb-bytes's documentation and added a derive. 2021-01-24 10:06:49 +00:00
baf40599a1 Added 3d model set extractor.
Figured out `Unknown0` in `PakEntry`'s kind.
2021-01-24 05:27:35 +00:00
cc2c1c9713 Added pak-extractor binary.
Changed `PakFile` layout.
2021-01-24 00:04:45 +00:00
466f0a5a33 Moved clippy::similar_names lint to crate allows. 2021-01-23 22:59:53 +00:00
233490822f Fixed tests not compiling. 2021-01-23 22:44:50 +00:00
de384d3bbf Added drv-extractor bin.
Made all functions that take a reader take it by mutable reference.
2021-01-23 22:34:32 +00:00
577939d6d8 PakFile can now be constructed from a reader. 2021-01-23 08:04:10 +00:00
c88e1b4f94 Fixed bug in FileReader's io::Reader implementation when reading buffers larger than the remaining sector bytes. 2021-01-23 07:48:07 +00:00
80d3dc9a81 Updated GameFile to the new interface.
Fixed bug with `FileReader`'s `io::Seek` impl, where it didn't actually seek the file.
Fixed bug with `DirEntry::from_reader` impl, where it didn't read the remaining entry bytes.
2021-01-23 07:19:55 +00:00
3aea6d78e7 Updated iso9660's DirEntry to read files and directories better. 2021-01-23 05:41:14 +00:00
f2589d23d2 Updated .DRV filesystem to work with a generic reader and not read everything at once. 2021-01-23 04:08:55 +00:00
519f7f1845 Added extra flags to dcb-iso-9660's entry flags. 2021-01-23 03:14:14 +00:00
dd26994182 Revised some documentation on dcb-iso9660. 2021-01-22 22:46:39 +00:00
d9c6bf96e0 Revised CdRom interface. 2021-01-21 23:30:53 +00:00
2af0871f2c Merge branch 'dcb-io-rework' 2021-01-21 22:32:39 +00:00
9fa368afe4 Removed unnecessary dependencies on most things.
Turned `dcb-tools` into several packages.
Revised `dcb-util` a bit.
2021-01-21 22:30:29 +00:00
2766b4c4d5 Separated dcb-iso9660 into itself and dcb-cdrom-xa. 2021-01-21 21:12:27 +00:00
0facd39b93 Removed warnings from extractor. 2021-01-21 20:20:15 +00:00
d637d6964e Renamed PakEntry::FileHeader to Animation2d.
Added `Animation2d` type and strarted working on it's deserialization.
2021-01-21 18:06:50 +00:00
e65ba48dd8 PakEntry now does no parsing. 2021-01-20 19:36:26 +00:00
3dcd61b9b6 Added PakEntry for each entry within a PakFile. 2021-01-20 06:00:09 +00:00
00194d55d1 Worked on .PAK implementation.
Started work on `.TIM` implementation.
2021-01-20 05:05:39 +00:00
4c07bbe4c4 Moved .DRV filesystem to top-level in dcb-io.
Started work on parsing `.PAK` files.
2021-01-20 02:14:33 +00:00