7b8c4c9c5f
Add tests for the string file operations, fix nul terminator handling
...
Since this recently had a hand in patch regression, let's start adding
some basic tests for this function.
I realized the writing functions did not take into account the nul
terminator, which is not correct and has been fixed.
2024-07-18 14:17:24 -04:00
66034b6e8d
Patch fixing redux: Trim trailing null characters
...
This fixes broken file operations
2024-07-18 14:08:10 -04:00
30ed0180ce
Implement write_string, add get_string_len helper function
2024-06-29 12:36:54 -04:00
51105859e5
Begin converting all existing patch structs to writable forms
...
This isn't complete yet of course, for future work.
2024-06-29 11:15:19 -04:00
e5caab2e64
Run rustfmt and fix more Clippy warnings
2024-05-18 09:42:07 -04:00
8ecbd74283
Better expose the color table rows for materials
2024-05-04 14:20:02 -04:00
b595d48963
Add support for reading the color table from a material
2024-04-30 19:43:47 -04:00
149e9bb25b
Simplify PBD parsing
2024-04-30 16:17:04 -04:00
d5b3b8a468
Run cargo fmt
2024-04-20 13:18:03 -04:00
26e89e8873
Remove more dead code
2024-04-16 21:19:08 -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