From 0a1a08a7e0aa4077dd2c5f9ff821581f307a1d42 Mon Sep 17 00:00:00 2001 From: d0k3 Date: Fri, 22 Sep 2017 17:18:06 +0200 Subject: [PATCH] Allow filelist reloads via R+DOWN --- source/godmode.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/godmode.c b/source/godmode.c index 3df64d5..6429736 100644 --- a/source/godmode.c +++ b/source/godmode.c @@ -1913,10 +1913,10 @@ u32 GodMode(bool is_b9s) { InitExtFS(); GetDirContents(current_dir, current_path); if (cursor >= current_dir->n_entries) cursor = 0; - } else if ((pad_state & BUTTON_DOWN) && (cursor + 1 < current_dir->n_entries)) { // cursor down + } else if (!switched && (pad_state & BUTTON_DOWN) && (cursor + 1 < current_dir->n_entries)) { // cursor down if (pad_state & BUTTON_L1) mark_next = curr_entry->marked; cursor++; - } else if ((pad_state & BUTTON_UP) && cursor) { // cursor up + } else if (!switched && (pad_state & BUTTON_UP) && cursor) { // cursor up if (pad_state & BUTTON_L1) mark_next = curr_entry->marked; cursor--; } else if (switched && (pad_state & (BUTTON_RIGHT|BUTTON_LEFT))) { // switch pane @@ -1930,6 +1930,8 @@ u32 GodMode(bool is_b9s) { cursor = pane->cursor; scroll = pane->scroll; GetDirContents(current_dir, current_path); + } else if (switched && (pad_state & BUTTON_DOWN)) { // force reload file list + GetDirContents(current_dir, current_path); } else if ((pad_state & BUTTON_RIGHT) && !(pad_state & BUTTON_L1)) { // cursor down (quick) cursor += quick_stp; } else if ((pad_state & BUTTON_LEFT) && !(pad_state & BUTTON_L1)) { // cursor up (quick)