From 294f608ca93860fa71d1fd7b132d3752c269c19b Mon Sep 17 00:00:00 2001 From: 0CBH0 Date: Sun, 25 Jun 2017 22:40:39 +0800 Subject: [PATCH] fix the wrong offset of CRC data, close #2 --- wiiurpxtool.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/wiiurpxtool.cpp b/wiiurpxtool.cpp index 8cf036b..20496aa 100644 --- a/wiiurpxtool.cpp +++ b/wiiurpxtool.cpp @@ -173,6 +173,7 @@ int decompress(FILE *in, FILE *out) fwrite32_BE(shdr_table[i].sh_addralign, out); fwrite32_BE(shdr_table[i].sh_entsize, out); } + fseek(out, crc_data_offset, 0); for (u32 i=0; i