mirror of
https://github.com/libretro/snes9x.git
synced 2024-12-14 04:28:36 +00:00
Fix bug caused by virtual directories.
This commit is contained in:
parent
7c39cc34ba
commit
6d74746342
@ -465,8 +465,11 @@ S9xOpenROMDialog (void)
|
||||
filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dialog));
|
||||
directory =
|
||||
gtk_file_chooser_get_current_folder (GTK_FILE_CHOOSER (dialog));
|
||||
strncpy (gui_config->last_directory, directory, PATH_MAX);
|
||||
g_free (directory);
|
||||
if (directory)
|
||||
{
|
||||
strncpy (gui_config->last_directory, directory, PATH_MAX);
|
||||
g_free (directory);
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user