Skip to content

Commit

Permalink
- Use data.iso for apps scheme.
Browse files Browse the repository at this point in the history
  • Loading branch information
Extrems committed Jan 24, 2025
1 parent 29e6816 commit d6897bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cube/swiss/source/swiss.c
Original file line number Diff line number Diff line change
Expand Up @@ -1341,6 +1341,10 @@ void boot_dol(file_handle* file, int argc, char *argv[])
file_handle *imageFile = calloc(1, sizeof(file_handle));
snprintf(imageFile->name, PATHNAME_MAX, "%s.iso", fileName);

if(!fnmatch("*/apps/*/*", file->name, FNM_PATHNAME | FNM_CASEFOLD | FNM_LEADING_DIR)) {
getParentPath(imageFile->name, imageFile->name);
concat_path(imageFile->name, imageFile->name, "data.iso");
}
if(devices[DEVICE_CUR]->statFile) {
devices[DEVICE_CUR]->statFile(imageFile);
}
Expand Down

0 comments on commit d6897bd

Please sign in to comment.