Alt-A now works from any folder

This commit is contained in:
penfold42 2018-07-27 23:56:42 +10:00
parent d15641e57f
commit 94f579fc08
3 changed files with 6 additions and 3 deletions

View file

@ -1287,8 +1287,11 @@ void FileBrowser::DisplayDiskInfo(DiskImage* diskImage, const char* filenameForI
} }
} }
void FileBrowser::AutoSelectImage(const char* image) void FileBrowser::SelectAutoMountImage(const char* image)
{ {
f_chdir("/1541");
RefreshFolderEntries();
FileBrowser::BrowsableList::Entry* current = 0; FileBrowser::BrowsableList::Entry* current = 0;
int index; int index;
int maxEntries = folder.entries.size(); int maxEntries = folder.entries.size();

View file

@ -168,7 +168,7 @@ public:
FileBrowser(DiskCaddy* diskCaddy, ROMs* roms, u8* deviceID, bool displayPNGIcons, ScreenBase* screenMain, ScreenBase* screenLCD, float scrollHighlightRate); FileBrowser(DiskCaddy* diskCaddy, ROMs* roms, u8* deviceID, bool displayPNGIcons, ScreenBase* screenMain, ScreenBase* screenLCD, float scrollHighlightRate);
void AutoSelectImage(const char* image); void SelectAutoMountImage(const char* image);
void DisplayRoot(); void DisplayRoot();
void Update(); void Update();

View file

@ -657,7 +657,7 @@ void CheckAutoMountImage(EXIT_TYPE reset_reason , FileBrowser* fileBrowser)
{ {
case EXIT_UNKNOWN: case EXIT_UNKNOWN:
case EXIT_RESET: case EXIT_RESET:
fileBrowser->AutoSelectImage(autoMountImageName); fileBrowser->SelectAutoMountImage(autoMountImageName);
break; break;
case EXIT_CD: case EXIT_CD:
case EXIT_KEYBOARD: case EXIT_KEYBOARD: