Place cursor on mounted image drive after mount

This commit is contained in:
d0k3 2016-11-28 21:57:38 +01:00
parent 2876ebf7ef
commit f5c0e6eb35
2 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,7 @@
(((v) % (a)) ? ((v) + (a) - ((v) % (a))) : (v))
// GodMode9 version
#define VERSION "0.7.7"
#define VERSION "0.7.8"
// buffer area defines (in use by godmode.c)
#define DIR_BUFFER (0x21000000)

View File

@ -704,6 +704,8 @@ u32 GodMode() {
*current_path = '\0';
GetDirContents(current_dir, current_path);
cursor = 0;
for (u32 i = current_dir->n_entries - 1; i > 0; i--)
if (strspn(current_dir->entry[i].path, "789GI") > 0) cursor = i;
}
} else if ((int) user_select == searchdrv) { // -> search drive, open containing path
char* last_slash = strrchr(curr_entry->path, '/');