From ac0cbb6dc9e0a5ddb7cb2f8371ff2ee790b87d53 Mon Sep 17 00:00:00 2001 From: nmlgc Date: Wed, 4 Mar 2020 23:28:03 +0100 Subject: [PATCH] [Reverse-engineering] [th01] Identify the end of grx_header_t as a palette MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Unfortunately, none of the images in BOSS8.GRZ actually set it to their intended palette, which means we… Part of P0081, funded by Ember2528. --- th01/formats/grz.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/th01/formats/grz.cpp b/th01/formats/grz.cpp index 978fc77d..3d18f185 100644 --- a/th01/formats/grz.cpp +++ b/th01/formats/grz.cpp @@ -35,7 +35,8 @@ struct grx_header_t { int8_t unused_1[3]; uint16_t rle_stream_size; uint16_t planar_stream_size; - int8_t unused_2[52]; + int8_t unused_2[4]; + Palette4 palette; }; void grx_put_stream(unsigned int slot, int planar_stream)