Skip to content

Commit

Permalink
- Don't show select_alt_dol when the selection is just the main DOL a…
Browse files Browse the repository at this point in the history
…nd the apploader trailer
  • Loading branch information
emukidid committed Dec 6, 2019
1 parent 12e4bc4 commit b04a78d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cube/swiss/source/swiss.c
Original file line number Diff line number Diff line change
Expand Up @@ -560,8 +560,13 @@ ExecutableFile* select_alt_dol(ExecutableFile *filesToPatch) {
int i = 0, j = 0, max = 0, idx = 0, page = 4;
for(i = 0; i < 64; i++) if(filesToPatch[i].offset == 0) break;
sortDols(filesToPatch, i); // Sort DOL to the top
for(i = 0; i < 64; i++) if(filesToPatch[i].offset == 0 || filesToPatch[i].type != PATCH_DOL) break;
int num_files = i;
int num_files = 0;
for(i = 0; i < 64; i++) {
if(filesToPatch[i].offset != 0 && filesToPatch[i].type == PATCH_DOL
&& !(!strcmp(filesToPatch[i].name, "Main DOL") || !strcmp(filesToPatch[i].name, "Apploader Trailer"))) {
num_files++;
}
}
if(num_files < 2) return 0;

int fileListBase = 175;
Expand Down

0 comments on commit b04a78d

Please sign in to comment.