Skip to content

Commit

Permalink
- Fix return to menu in Midway Arcade Treasures 2 and Namco Museum 50…
Browse files Browse the repository at this point in the history
…th Anniversary.
  • Loading branch information
Extrems committed Oct 8, 2021
1 parent 0d9da82 commit f225e58
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cube/swiss/source/gcm.c
Expand Up @@ -249,10 +249,12 @@ int parse_gcm(file_handle *file, ExecutableFile *filesToPatch) {
memcpy(&file_offset,&FST[offset+4],4);
memcpy(&size,&FST[offset+8],4);
if(endsWith(filename,".dol")) {
// Some games contain a single "default.dol", these do not need
// pre-patching because they are what is actually pointed to by the apploader (and loaded by us)
if(dolOffset == file_offset || dolSize == size || !valid_dol_file(file, file_offset, size)) {
continue;
if(strcasecmp(filename,"ffe.dol")) {
// Some games contain a single "default.dol", these do not need
// pre-patching because they are what is actually pointed to by the apploader (and loaded by us)
if(dolOffset == file_offset || dolSize == size || !valid_dol_file(file, file_offset, size)) {
continue;
}
}
filesToPatch[numFiles].offset = file_offset;
filesToPatch[numFiles].size = size;
Expand Down

0 comments on commit f225e58

Please sign in to comment.