31 Commits

Author SHA1 Message Date
c55ab5d80b Fixed longstanding bug with SeekFrom::Start seeks of CdRomCursor. 2021-05-29 19:00:18 +01:00
eb52ba496d Revised dcb_io::GameFile to use cursors. 2021-05-22 22:45:18 +01:00
ec992f395a Added minimal cursor implementation for cdrom-xa.
Added `dcb_util::{checked_signed_offset, signed_offset}`.
`dcb-card-editor` now operates on the game file itself.
2021-05-15 05:48:26 +01:00
63d4b773e7 Removed unnecessary #[allow(...)].
Removed unused `dcb-util/util.rs`.
2021-05-14 07:30:37 +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
bf5e43a163 Undid reading of form 2 sectors, as it seems to be broken. 2021-04-24 07:42:09 +01:00
a67f67bb04 Now writing edc to sectors. 2021-04-24 07:08:50 +01:00
e91f348ca7 Started work on sector ecc. 2021-04-24 07:00:21 +01:00
082066af3e Invalid edc now returns an error. 2021-04-24 05:57:02 +01:00
b6973b8228 Sector can now store both form 1 and 2 sectors.
Finished `edc` checking in `Sector`.
2021-04-24 05:50:38 +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
c483dca032 Fixed eof condition in SectorsRangeIter. 2021-04-02 15:17:57 +01:00
2e03865b48 Fixed some variants in header::FromBytesError not having a #[source].
Fixed issue with `Dcb` deserialization.
2021-04-02 15:01:28 +01:00
112b9e0860 Updated CdRomWriter to keep the current sector on it's own.
`Sector::new` and children now return a `Result` instead of `Option`.
Renamed `dcb-xa-packer` to `dcb-iso2bin`.
2021-04-02 14:30:27 +01:00
1b4ac1bfa7 Added some extra methods to CdRomReader. 2021-03-29 11:10:34 +01:00
5b484eece3 Updated rustfmt.toml. 2021-03-28 21:00:18 +01:00
7cba0aa52c Updated lints and features to 1.52.0-nightly. 2021-03-11 16:01:19 +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
9222ef40d6 Changed the Bytes derive to have endianess per-field.
Started using the new derive.
2021-01-24 10:19:22 +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
d9c6bf96e0 Revised CdRom interface. 2021-01-21 23:30:53 +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