1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-04-26 22:27:44 +00:00
Commit graph

19 commits

Author SHA1 Message Date
d58a216462 Shrink the dependency and feature complexity, auto-cleanup and more
We had a few odd dependencies that caused nothing but pain in dependent projects
like libphysis. One of these was libunshield (a C library) that our game_install
feature used, but to be honest this was the wrong library to put this code. It
was really only ever used by Astra, and should live there instead - there's no
reason to have it shared between applications (and it's small enough to be
copied if *you* need it.) Also that also killed the system-deps dependency which
had a significant impact on our build time.

Another dependency was replaced: libz-sys. This is replaced by the pure Rust
libz-rs (through libz-rs-sys) which should simplify deploying physis without
having to worry about manually linking libz or other nonsense. Some leftover
copied code from flate2 can also be removed.

I also removed the visual_data feature as Astra ended up using it anyway, and
the distinction doesn't make much sense now. It was previously to gate some
dependencies needed for visual data extraction, but the bitflags and half crates
are small. I can look into splitting the crate up into more features if needed
later.

A dependency that was erroneously included in the refactoring was quote, which
has been removed. Also ran cargo fmt, clippy too.
2025-03-11 16:29:24 -04:00
fecb21cf88 Make comment field public 2025-03-10 18:08:30 -04:00
af0d34c011 Extract max comment length into a constant 2025-03-08 13:14:14 -05:00
f89eed5dc6 Calculate the correct checksum when writing character saved data 2025-03-08 13:12:08 -05:00
445a90a0fa Fix write support for character appearance data, add test 2025-03-08 11:34:16 -05:00
b8cc68eb30 Fixup various issues with the character appearance data reading, add tests
I had multiple fields on this wrong, add comment support and tests to ensure
everything is still ship shape.
2025-03-08 11:27:22 -05:00
d5b3b8a468 Run cargo fmt 2024-04-20 13:18:03 -04:00
58cec6c91f Remove some unused imports 2024-04-16 22:08:46 -04:00
363abc67da Add invalid data test to CharacterData 2024-04-16 21:43:15 -04:00
e5bbde95fd Don't call unwrap() in writing CharDat files 2024-04-16 21:28:33 -04:00
f067b653b1 Add common functions for converting bool back and forth from u8/16
Sort of unnecessary, but these are also tested.
2024-04-16 21:03:26 -04:00
7a75c170cc Make a semantic difference between owned and non-owned byte data 2023-10-13 16:16:04 -04:00
4dfd36dbd8 Fix and quiet clippy warnings 2023-09-22 19:17:24 -04:00
2ce18ec66a Add the missing documentation for CharDat, rename struct too 2023-09-22 18:13:20 -04:00
09c0d199f2 Add support for writing chardat files 2023-09-22 16:39:56 -04:00
2000b978b3 Ensure compliance with REUSE, add to CI 2023-08-06 08:25:04 -04:00
30d5cd5996 Add write support for chardat files 2023-08-02 16:27:10 -04:00
9a004e705d Fix more warnings 2023-07-30 08:58:59 -04:00
bd104fbae0 Add support for loading character .dat files 2023-07-08 15:29:00 -04:00