Decompiling the game binary shows a rather elaborate algorithm to load DDS images from binary. Though comparing it to Microsoft's documentation on DDS, most of it seems to be pretty standard handling. However, we don't actually need all of it. The part about calculating pitch and reading blocks only accesses a subset of the `ImageFormat` struct, so we can strip our implementation to just that. |
||
---|---|---|
.. | ||
bundle | ||
filetype | ||
murmur | ||
binary.rs | ||
context.rs | ||
lib.rs |