Skip to content

Commit

Permalink
config path is 3ds-hbmenu
Browse files Browse the repository at this point in the history
  • Loading branch information
WinterMute committed Nov 6, 2023
1 parent 5295970 commit 9642c58
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions source/ui/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
}
Expand Down

0 comments on commit 9642c58

Please sign in to comment.