Fusee: Update INI1 size after patching

This commit is contained in:
Michael Scire
2018-04-11 22:32:45 -06:00
parent 375a0b3fa8
commit 75b29e777b
3 changed files with 5 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ ini1_header_t *stratosphere_get_ini1(void) {
}
/* Merges some number of INI1s into a single INI1. It's assumed that the INIs are in order of preference. */
void stratosphere_merge_inis(void *dst, ini1_header_t **inis, unsigned int num_inis) {
size_t stratosphere_merge_inis(void *dst, ini1_header_t **inis, unsigned int num_inis) {
char sd_path[0x300] = {0};
/* Validate all ini headers. */
for (unsigned int i = 0; i < num_inis; i++) {
@@ -102,4 +102,6 @@ void stratosphere_merge_inis(void *dst, ini1_header_t **inis, unsigned int num_i
/* Copy merged INI1 to destination. */
memcpy(dst, merged, merged->size);
return merged->size;
}