gtk: open recent should behave the same as open
If running, pause before loading a new rom From Jan Bücken (nooris), #3288654
This commit is contained in:
parent
59ec9700c6
commit
2691463d4a
|
@ -1022,6 +1022,9 @@ static void OpenRecent(GtkRecentChooser *chooser, gpointer user_data)
|
|||
gchar *uri, *romname;
|
||||
int ret;
|
||||
|
||||
if (desmume_running())
|
||||
Pause();
|
||||
|
||||
uri = gtk_recent_chooser_get_current_uri(chooser);
|
||||
romname = g_filename_from_uri(uri, NULL, NULL);
|
||||
ret = Open(romname);
|
||||
|
|
Loading…
Reference in New Issue