fusee: Incremet offset while reading kip1s

This commit is contained in:
langerhans 2018-06-04 22:55:12 +02:00
parent ec164b8606
commit 46f94e8744
2 changed files with 3 additions and 1 deletions

View File

@ -108,7 +108,7 @@ export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib) export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib)
.PHONY: $(BUILD) clean all .PHONY: $(BUILD) clean all
.PHONY: check_exosphere check_thermosphere check_exosphere .PHONY: check_exosphere check_thermosphere check_stratosphere
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
all: $(BUILD) all: $(BUILD)

View File

@ -120,6 +120,8 @@ ini1_header_t *stratosphere_merge_inis(ini1_header_t **inis, size_t num_inis) {
fatal_error("INI1s[%zu][%zu] appears not to be a KIP1!\n", i, p); fatal_error("INI1s[%zu][%zu] appears not to be a KIP1!\n", i, p);
} }
offset += kip1_get_size_from_header(current_kip);
bool already_loaded = false; bool already_loaded = false;
for (uint32_t j = 0; j < merged->num_processes; j++) { for (uint32_t j = 0; j < merged->num_processes; j++) {
if (process_list[j] == current_kip->title_id) { if (process_list[j] == current_kip->title_id) {