340 Commits

Author SHA1 Message Date
d6dec17d91 Pos's add and sub operators now use wrapping by default. 2021-04-20 02:43:37 +01:00
c25f1f2092 Moved some foreign data from game to foreign. 2021-04-20 02:38:43 +01:00
3cecba468c Added ParsedLabel to parse module in dcb_exe::inst.
`dcb-compiler` now collects all labels and instructions before beginning to iterate.
2021-04-20 00:33:04 +01:00
7a745a02bc Added BTreeMapParIter to dcb_util. 2021-04-20 00:32:00 +01:00
40545a4aab Ran rustfmt on inst. 2021-04-19 23:10:05 +01:00
ba799baf85 Removed usages of removed Option::expect_none api.
Added more sanity checks to `btree_set_modify`.
2021-04-19 23:06:40 +01:00
2b9cf4a790 Added instruction parsing to dcb-exe.
Fixed bug in `dcb-compiler` where `-o` didn't actually take a value.
2021-04-19 22:49:32 +01:00
de556f37da Added an allow of clippy::single_match_else. 2021-04-19 22:48:06 +01:00
e690763fc3 Fixed emission of extra '$' with arguments in co-processor instructions. 2021-04-19 21:50:23 +01:00
cceddaaa1e Added some more data related to a currently wip function. 2021-04-19 05:09:52 +01:00
76a76439b7 Fixed major bug in range_disjoint.
Added some more data and functions.
2021-04-19 03:12:52 +01:00
6c2de4fd80 Renamed function table's comments to inline comments and added block comments.
Found some of C's standard library functions.
Added random functions found.
`dcb-decompiler` will now properly align inline comments.
2021-04-18 23:12:32 +01:00
68c76a7f03 Removed usages of super::super. 2021-04-16 05:28:12 +01:00
558e4cbfb1 Fixed all extra lines in // Import sections. 2021-04-16 05:27:18 +01:00
991fa6ecce Fixed all documentation errors.
Renamed some errors to their function's name.
2021-04-10 05:41:58 +01:00
64aacedaf6 Moved inst::DecodeError to inst::error. 2021-04-10 05:17:58 +01:00
e2ba82e8af Revert "Added checksum checking for the executable bytes."
This reverts commit b0053bfb1ce990337756d59b1c597073d330382b.
2021-04-06 19:23:14 +01:00
dd6fbba431 Renamed dcb_exe::Exe to ExeReader. 2021-04-06 19:20:19 +01:00
83d9fe5e84 Moved dcb_exe::exe::{data, func, header, pos} to the crate level. 2021-04-06 19:19:03 +01:00
1e2f059895 Moved dcb_exe::exe::inst to crate::inst. 2021-04-06 19:13:11 +01:00
b41bd32fbd Renamed known_* to game_* and split game_data into foreign_data.
Renamed `Found` to `DataKind`.
2021-04-06 18:54:12 +01:00
b0053bfb1c Added checksum checking for the executable bytes. 2021-04-06 18:29:27 +01:00
4235461c44 dcb-decompiler now works again by taking in directly the executable. 2021-04-06 18:13:33 +01:00
1bf5807777 DirLister now stores the metadata of the file along with it's path when constructed. 2021-04-05 16:37:03 +01:00
b1fe029e67 mkdrv now uses println instead of log::info. 2021-04-05 16:27:43 +01:00
925948b6b5 mkdrv now lists all files by alphabetical order (which isn't accurate yet, but works for now).
`mkdrv` now correctly pads the file to a multiple of sector size.
2021-04-05 16:26:23 +01:00
a5506c6688 dcb-undrv now correctly sets the modification date on directories. 2021-04-05 15:45:41 +01:00
27f296304b Renamed iso2bin to mkbin and bin2iso to unbin. 2021-04-05 15:09:32 +01:00
93ba9d23f4 Renamed drv to dcb-mkdrv, undrv to dcb-undrv and unpak to dcb-unpak. 2021-04-05 15:06:02 +01:00
4b71ef0bac Updated to 1.53.0-nightly. 2021-04-05 15:03:38 +01:00
ea9e4bb34d Added dcb-bin2iso binary. 2021-04-02 15:19:52 +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
a81fda3798 Removed unused folder in dcb-iso2bin. 2021-04-02 14:30:58 +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
3be8ac9bd1 Cached terminator value in OnlyValidCharsAlphabet. 2021-03-31 21:49:12 +01:00
856fa8d28f Changed order of checking for file / directory to treat all non-directories (such as symlinks) as files. 2021-03-31 21:47:47 +01:00
81e64fda75 Slightly updated documentation on dcb-drv. 2021-03-31 21:00:05 +01:00
bd53e223cb Updated some documentation on PakEntryReader. 2021-03-31 20:44:04 +01:00
7c5f13866c Moved dcb_pak::entry to dcb_pak::reader::entry. 2021-03-30 21:20:09 +01:00
8617c0faab Renamed PakEntry into PakEntryReader. 2021-03-30 21:15:03 +01:00
912839985b Added PakFileReader:cur_pos.
`unpak` now uses an internal index instead of the header id, as those aren't unique.
2021-03-30 21:10:43 +01:00
243d623055 Updated unpak. 2021-03-30 19:48:51 +01:00
1b4ac1bfa7 Added some extra methods to CdRomReader. 2021-03-29 11:10:34 +01:00
da013746e3 Slightly updated unpak. 2021-03-29 10:48:23 +01:00
a63f46a355 Renamed pak-extractor to unpak. 2021-03-28 21:08:14 +01:00
60d1ee2c64 Moved try_create_folder to dcb-util. 2021-03-28 21:06:23 +01:00
5b484eece3 Updated rustfmt.toml. 2021-03-28 21:00:18 +01:00
c705db9658 undrv now supports multiple input files, as well as a quiet flag, and a flag for warning on overriding. 2021-03-28 20:54:41 +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