From a6c4112ee198c9302be9d49f538b9cc7b6aabe71 Mon Sep 17 00:00:00 2001 From: applestash Date: Sat, 30 Aug 2014 00:58:58 +1000 Subject: [PATCH] fixed ptr misalignment --- makerom/cia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makerom/cia.c b/makerom/cia.c index b9ab061..4c65e0b 100644 --- a/makerom/cia.c +++ b/makerom/cia.c @@ -443,7 +443,7 @@ int ImportNcchContent(cia_settings *ciaset) return MEM_ERROR; } - ncch_hdr *ncch0hdr = (ncch_hdr*)(ciaset->ciaSections.content.buffer+0x100); + ncch_hdr *ncch0hdr = (ncch_hdr*)ciaset->ciaSections.content.buffer; for(int i = 1; i < ciaset->content.count; i++){ // Import u8 *ncchpos = (u8*)(ciaset->ciaSections.content.buffer+ciaset->content.offset[i]);