640 Commits

Author SHA1 Message Date
b589c4c500 Started adding diff screen. 2021-06-10 18:46:15 +01:00
4484d2a44f Moved File > Open to it's own function. 2021-06-10 18:42:37 +01:00
93f70ada9a Moved card searching to LoadedGame. 2021-06-10 18:17:37 +01:00
6ef468cc06 Fixed wrong default when card table size doesn't fit in a u64. 2021-06-10 18:12:27 +01:00
827fea4963 Renamed saved_card_table_hash to file_card_table_hash. 2021-06-10 18:10:08 +01:00
79bbdfb65a Improved SwapScreen implementation. 2021-06-09 19:15:58 +01:00
b25b5e2fd8 OverviewScreen now receives a CardTable instead of the loaded game. 2021-06-09 19:00:19 +01:00
992ad2b901 Added dcb_util::Void.
`dcb_file_editor` doesn't block on loading error anymore
2021-06-05 17:35:30 +01:00
9930d72dfe task::spawn now uses a std thread instead of rayon 2021-06-05 17:29:17 +01:00
88f80c5762 Revised alert macros to not allocate on non-formatted inputs. 2021-06-05 17:27:48 +01:00
17e352ba51 The main thread no longers locks the game file's cdrom. 2021-06-05 16:10:51 +01:00
e080bf3c4c Removed dcb_util::IoThread as it wasn't the right abstraction. 2021-06-05 15:46:01 +01:00
4d71707e4e Fixed DecDateTime's timezone printing being wrong. 2021-06-04 21:36:54 +01:00
93cc39ebd3 Moved dcb_iso9660::string to dcb_util::alphabet. 2021-06-04 21:29:06 +01:00
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
1d7cac06d3 Experimenting with unpacking m3d files in unmtd 2021-06-04 17:51:37 +01:00
432c4d0b62 Added minimal tmd2obj implementation. 2021-06-03 19:10:06 +01:00
fcbfcb5666 Now using Shift-JIS for text handling. 2021-06-03 14:52:13 +01:00
1722e3b075 LoadedGame now stores the game file itself and uses the GameFile interface to interact with it.
`EditScreen` now displays an image of the card.
2021-06-03 07:39:52 +01:00
267baa3715 Added CardTable::{open, card_image_path}. 2021-06-03 07:38:38 +01:00
78cd1bd48a Added color to arrow color display. 2021-06-03 06:41:39 +01:00
c55cc7e034 Removed an unnecessary expect. 2021-06-02 19:11:47 +01:00
8357855f6f Now using read_deserialize and to_bytes in more places. 2021-06-02 14:14:40 +01:00
43c13c8fbd Renamed Bytes{Read, Write}Ext::{read, write}_bytes to {read_deserialize, write_serialize}. 2021-06-02 14:09:04 +01:00
9279ef7a41 Card::{serialize, deserialize} now use BytesReadExt and BytesWriteExt. 2021-06-02 14:04:25 +01:00
47736dabb8 Renamed methods and types in Bytes. 2021-06-02 13:51:45 +01:00
ceabe511f8 Added BytesReadExt and BytesWriteExt. 2021-06-02 12:36:11 +01:00
4b620fc866 LoadedGame::save now serializes to a temporary vector in case of failure. 2021-06-02 12:26:00 +01:00
fc710a0948 Fixed issue with cards not being partitioned correctly, as well as the number of digivolves written being wrong.
`LoadedGame` now writes changes even if the hash is the same, as well as only updates it's hash if the file is the same.
2021-06-02 12:23:45 +01:00
1312559f08 Removed the necessity to have a card type in SwapScreen. 2021-06-02 11:59:33 +01:00
2c1d33797c card::Table now stores a single vector of Cards instead of 3 separate.
`Digimon`, `Item` and `Digivolve` are now `Copy`.
2021-06-02 11:54:30 +01:00
748a07b208 Added ByteArray::zeros and Bytes::bytes(). 2021-06-02 11:50:37 +01:00
f36dc8cf78 Added certain extra verification steps in card-editor. 2021-06-01 13:01:40 +01:00
6016e5c210 Added rudimentary overview screen. 2021-06-01 09:08:16 +01:00
5373daf119 Fixed render_card to add exactly the space required. 2021-06-01 08:24:47 +01:00
b15c122c58 Moved SwapScreen to it's own module. 2021-06-01 08:17:20 +01:00
cebc35289d Moved EditScreen to it's own module. 2021-06-01 08:11:19 +01:00
1ee07db33a Moved LoadedGame to it's own module. 2021-06-01 07:57:24 +01:00
856e483bbd Added macros for string intepolation to dcb_util::alert. 2021-06-01 07:39:04 +01:00
d45ba42742 dcb-card-editor now uses dcb_util::alert. 2021-06-01 07:33:00 +01:00
36d66780c9 Moved dcb_file_editor::alert_* to dcb_util under a feature flag. 2021-06-01 07:27:54 +01:00