120 Commits

Author SHA1 Message Date
8bba037a35 Started work on dcb-mkiso-bin. 2021-04-24 09:18:13 +01:00
35caa3ad3f Added dcb-uniso-bin to extract all files within the iso in a .bin file. 2021-04-24 09:06:57 +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
8f0b8b37ba Removed debugging in dcb-compiler. 2021-04-24 05:18:22 +01:00
d7dd6b928b Fixed bug in dcb-decompiler where -o didn't take any value. 2021-04-24 05:18:00 +01:00
6fbf3da552 Added Inst::from_parsed to compile instructions.
`Inst::decode` now doesn't make pseudo instructions if there's a label in the middle of it.
2021-04-22 15:23:57 +01:00
455e7c9e69 dcb-decompiler no longer substitutes labels into li instructions. 2021-04-21 22:17:56 +01:00
54f2f7107b dcb-decompiler now prints the header into a .header file. 2021-04-21 11:43:20 +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
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
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
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
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
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
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
7c5f13866c Moved dcb_pak::entry to dcb_pak::reader::entry. 2021-03-30 21:20:09 +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
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
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
061c7eb071 Renamed drv-extractor to undrv and drv-packer to drv. 2021-03-16 20:45:44 +00: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
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
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
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
20b3696635 Separated dir into a reader and writer. 2021-01-25 05:24:06 +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