mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
Place cursor on mounted image drive after mount
This commit is contained in:
parent
2876ebf7ef
commit
f5c0e6eb35
@ -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)
|
||||
|
@ -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, '/');
|
||||
|
Loading…
x
Reference in New Issue
Block a user