remove unneeded code

This commit is contained in:
2025-08-28 16:46:27 +02:00
parent f1141e0db4
commit 5b5f1f54af
2 changed files with 0 additions and 35 deletions

View File

@@ -104,19 +104,3 @@ size_t mcx_calcsize(const u8 *restrict buf) {
size += *(buf + (i * 4) + 3);
return (size * 0x1000) + 0x2000;
}
/* an `*.mcX` contains a `0x2000` byte long table, the first `0x1000` containing
* `0x400` entries of chunk data.
* This chunk data is big-endian, where bytes `0xFFFFFF00` represent the `0x1000` sector offset.
* From the start, and bytes `0x000000FF` represent the length in `0x1000` sectors. */
void mcx_index(const u8 *restrict buf, struct mcx_chunk *restrict chunks) {
const u32 *ptr = (u32 *)buf;
for (uint i = 0; i < 0x400; i++) {
u32 dat = be32toh(ptr[i]);
chunks[i] = (struct mcx_chunk){
.idx = (dat >> 8) * 0x1000,
.len = (dat & 0xFF) * 0x1000,
.time = be32toh(ptr[i + 0x400]),
};
}
}