Skip to content

Commit

Permalink
Appended '/' to the switch path checked for NRO-auto-detect.
Browse files Browse the repository at this point in the history
  • Loading branch information
yellows8 committed Feb 28, 2018
1 parent 8f734a6 commit dd78d0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/menu-entry.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ bool menuEntryLoad(menuEntry_s* me, const char* name, bool shortcut) {
snprintf(tempbuf, sizeof(tempbuf)-1, "%.*s/%.*s.nro", (int)sizeof(tempbuf)/2, me->path, (int)sizeof(tempbuf)/2-7, name);
bool found = fileExists(tempbuf);

//Use the first .nro found in the directory, if there's only 1 NRO in the directory. Only used for paths which start with "sdmc:/switch".
if (!found && strncmp(me->path, "sdmc:/switch", 12)==0) {
//Use the first .nro found in the directory, if there's only 1 NRO in the directory. Only used for paths starting with "sdmc:/switch/".
if (!found && strncmp(me->path, "sdmc:/switch/", 13)==0) {
DIR* dir;
struct dirent* dp;
u32 nro_count=0;
Expand Down

0 comments on commit dd78d0f

Please sign in to comment.