diff --git a/fusee/fusee-secondary/Makefile b/fusee/fusee-secondary/Makefile index 56b9f74c7..b200d0ae7 100644 --- a/fusee/fusee-secondary/Makefile +++ b/fusee/fusee-secondary/Makefile @@ -108,7 +108,7 @@ export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \ export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib) .PHONY: $(BUILD) clean all -.PHONY: check_exosphere check_thermosphere check_exosphere +.PHONY: check_exosphere check_thermosphere check_stratosphere #--------------------------------------------------------------------------------- all: $(BUILD) diff --git a/fusee/fusee-secondary/src/stratosphere.c b/fusee/fusee-secondary/src/stratosphere.c index 63a3e4f52..e849c88bc 100644 --- a/fusee/fusee-secondary/src/stratosphere.c +++ b/fusee/fusee-secondary/src/stratosphere.c @@ -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); } + offset += kip1_get_size_from_header(current_kip); + bool already_loaded = false; for (uint32_t j = 0; j < merged->num_processes; j++) { if (process_list[j] == current_kip->title_id) {