From 9642c5848bdf239eaa4ac99fb31f6b10d345fe19 Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Mon, 6 Nov 2023 20:22:03 +0000 Subject: [PATCH] config path is 3ds-hbmenu --- source/ui/menu.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/source/ui/menu.c b/source/ui/menu.c index 13e92fc..cc1dfcb 100644 --- a/source/ui/menu.c +++ b/source/ui/menu.c @@ -37,7 +37,7 @@ char *menuGetRootBasePath(void) { } void menuStartupPath(void) { - char temp[PATH_MAX + 28]; + char temp[PATH_MAX + 29]; #if defined(__3DS__) strncpy(rootPathBase, "sdmc:", sizeof(rootPathBase) - 1); @@ -57,22 +57,22 @@ void menuStartupPath(void) { snprintf(temp, sizeof(temp) - 1, "%s/config", rootPathBase); mkdir(temp, 0755); - /* create /config/hbmenu directory */ - snprintf(temp, sizeof(temp) - 1, "%s/config/hbmenu", rootPathBase); + /* create /config/3ds-hbmenu directory */ + snprintf(temp, sizeof(temp) - 1, "%s/config/3ds-hbmenu", rootPathBase); mkdir(temp, 0755); - snprintf(temp, sizeof(temp) - 1, "%s/config/hbmenu/fileassoc", rootPathBase); + snprintf(temp, sizeof(temp) - 1, "%s/config/3ds-hbmenu/fileassoc", rootPathBase); - /* create /config/hbmenu/fileassoc */ + /* create /config/3ds-hbmenu/fileassoc */ if (stat(temp, &fileStat) == -1) mkdir(temp, 0755); } void menuLoadFileAssoc(void) { - char temp[PATH_MAX + 28]; + char temp[PATH_MAX + 29]; memset(temp, 0, sizeof(temp) - 1); - snprintf(temp, sizeof(temp) - 1, "%s/config/hbmenu/fileassoc", rootPathBase); + snprintf(temp, sizeof(temp) - 1, "%s/config/3ds-hbmenu/fileassoc", rootPathBase); menuFileAssocScan(temp); }