Skip to content

Commit

Permalink
Retain last dir upon eject
Browse files Browse the repository at this point in the history
Fix: #114
  • Loading branch information
negativeExponent committed Sep 12, 2024
1 parent c9d02c6 commit 1f4d6c0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions libretro/winui.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@

#include "fmg_wrap.h"

#include <file/file_path.h>

#ifdef _WIN32
#define SLASH '\\'
#else
Expand Down Expand Up @@ -200,7 +202,8 @@ static void menu_create_flist(int v)
{
Config.HDImage[drv - 2][0] = '\0';
}
strcpy(mfl.dir[drv], cur_dir_str);
/* retain last directory used upon eject */
/* strcpy(mfl.dir[drv], cur_dir_str); */
return;
}

Expand Down Expand Up @@ -337,7 +340,8 @@ static void menu_create_flist(int v)
}
else
Config.HDImage[drv - 2][0] = '\0';
strcpy(mfl.dir[drv], cur_dir_str);
/* retain last directory used upon eject */
/* strcpy(mfl.dir[drv], cur_dir_str); */
return;
}

Expand Down

0 comments on commit 1f4d6c0

Please sign in to comment.