mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
Open containing folder in secondary pane
This commit is contained in:
parent
90027ac8b2
commit
c6dd031438
@ -1021,6 +1021,12 @@ u32 FileHandlerMenu(char* current_path, u32* cursor, u32* scroll, PaneData** pan
|
||||
else if (user_select == searchdrv) { // -> search drive, open containing path
|
||||
char* last_slash = strrchr(curr_entry->path, '/');
|
||||
if (last_slash) {
|
||||
if (N_PANES) { // switch to next pane
|
||||
memcpy((*pane)->path, current_path, 256); // store current pane state
|
||||
(*pane)->cursor = *cursor;
|
||||
(*pane)->scroll = *scroll;
|
||||
if (++*pane >= panedata + N_PANES) *pane -= N_PANES;
|
||||
}
|
||||
snprintf(current_path, last_slash - curr_entry->path + 1, "%s", curr_entry->path);
|
||||
GetDirContents(current_dir, current_path);
|
||||
*cursor = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user