282 Commits

Author SHA1 Message Date
992ad2b901 Added dcb_util::Void.
`dcb_file_editor` doesn't block on loading error anymore
2021-06-05 17:35:30 +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
93cc39ebd3 Moved dcb_iso9660::string to dcb_util::alphabet. 2021-06-04 21:29:06 +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
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
47736dabb8 Renamed methods and types in Bytes. 2021-06-02 13:51:45 +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
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
ec912a6da9 Moved hash_of to dcb_util. 2021-06-01 07:22:59 +01:00
1d366e01e4 Now using dcb_util::StrContainsCaseInsensitive in dcb-card-editor. 2021-06-01 07:21:01 +01:00
dd7ee73b49 Moved AsciiTextBuffer to dcb_util under a feature flag. 2021-06-01 07:18:33 +01:00
0b70130a1b Fixed weird issue with rust-analyzer encountering an impl overflow over this line. 2021-06-01 07:18:07 +01:00
98e9bf8a76 Added minimal deck editor. 2021-06-01 02:06:06 +01:00
f384b95825 Bumped card-editor to 0.1.2. 2021-06-01 01:07:55 +01:00
4f672b7893 Added option to set effect to None. 2021-06-01 00:59:23 +01:00
2f58aa88ca Paks are now grouped by their id. 2021-05-31 07:38:54 +01:00
6d09e71f9a Now sorting tree entries. 2021-05-31 07:15:50 +01:00
3f968c746c Added minimal .PAK support. 2021-05-31 07:11:05 +01:00
f5fe4d87b9 Added TimDisplay to store a tim image to be displayed. 2021-05-31 06:45:51 +01:00
a8350e1418 Improved tim preview. 2021-05-31 06:37:33 +01:00
b155e2594f Fixed swap window button labels being swapped. 2021-05-31 06:13:15 +01:00
4f7a8a149e Added dcb_io::IoThread.
`dcb_io::GameFile` now just stores a `T` instead of `CdRomCursor<T>`.
`GameFile` now has interior threaded mutability.
2021-05-31 06:05:21 +01:00
ac0813edc4 GameFile now just stores the underlying file and constructs the GameFile whenever required. 2021-05-31 05:27:16 +01:00
72c74b89d6 Fixed task::spawn not properly running things in another thread. 2021-05-31 04:17:42 +01:00
a41b04acb3 PreviewPanel is now loaded in another thread. 2021-05-31 03:55:56 +01:00
847bf15f5e Game file is now loaded via a task. 2021-05-31 03:09:50 +01:00
f4a2a95e7d Renamed LoadedGame to GameFile. 2021-05-31 02:01:34 +01:00
50c6c2abc4 Moved all alerts to helper functions. 2021-05-31 01:57:05 +01:00
dbbb888f7f Fixed panic on PreviewPanel::drop. 2021-05-31 01:52:28 +01:00
a3aa4bc1fc Renamed FsTree to DrvTree.
`LoadedGame::display` now doesn't update the preview path.
2021-05-31 01:46:46 +01:00
9be0bf7a95 Moved LoadedGame to it's own module. 2021-05-31 01:36:38 +01:00