From dd78d0f8d73291868cfd74846f265e809fc24045 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Tue, 27 Feb 2018 22:14:56 -0500 Subject: [PATCH] Appended '/' to the switch path checked for NRO-auto-detect. --- common/menu-entry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/menu-entry.c b/common/menu-entry.c index cbdedaf5..3f5c8a2f 100644 --- a/common/menu-entry.c +++ b/common/menu-entry.c @@ -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;