close on root+B or PLUS
This commit is contained in:
parent
20c1f00972
commit
c0c21ee668
@ -81,7 +81,7 @@ void launchMenuNetloaderTask() {
|
||||
workerSchedule(netloaderTask, NULL);
|
||||
}
|
||||
|
||||
void launchMenuBackTask() {
|
||||
int launchMenuBackTask() {
|
||||
if(hbmenu_state == HBMENU_NETLOADER_ACTIVE) {
|
||||
netloaderSignalExit();
|
||||
}
|
||||
@ -90,9 +90,9 @@ void launchMenuBackTask() {
|
||||
menuScan(rootPath);
|
||||
}
|
||||
else {
|
||||
menuScan("..");
|
||||
return menuScan("..");
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void menuHandleAButton(void) {
|
||||
|
@ -109,7 +109,7 @@ int menuFileassocScan(const char* target);
|
||||
void launchMenuEntryTask(menuEntry_s* arg);
|
||||
void toggleStarState(menuEntry_s* arg);
|
||||
void launchApplyThemeTask(menuEntry_s* arg);
|
||||
void launchMenuBackTask();
|
||||
int launchMenuBackTask();
|
||||
void launchMenuNetloaderTask();
|
||||
char *menuGetRootPath(void);
|
||||
char *menuGetRootBasePath(void);
|
||||
|
@ -225,13 +225,17 @@ bool menuUpdate(void) {
|
||||
}
|
||||
else if (down & HidNpadButton_B)
|
||||
{
|
||||
launchMenuBackTask();
|
||||
if (launchMenuBackTask()) {
|
||||
__nx_applet_exit_mode = 1;
|
||||
exitflag = 1;
|
||||
}
|
||||
}
|
||||
else if(down & HidNpadButton_Minus){
|
||||
themeMenuStartup();
|
||||
}
|
||||
else if (down & HidNpadButton_Plus)
|
||||
{
|
||||
__nx_applet_exit_mode = 1;
|
||||
exitflag = 1;
|
||||
}
|
||||
else if (menu->nEntries > 0)
|
||||
|
Loading…
Reference in New Issue
Block a user