[mednaffe] 80/99: Fix to save special options
Stephen Kitt
skitt at moszumanska.debian.org
Tue Aug 2 21:00:10 UTC 2016
This is an automated email from the git hooks/post-receive script.
skitt pushed a commit to branch master
in repository mednaffe.
commit 974e9b49679a245e79a1f0b9f8be98bd3d04b38b
Author: AmatCoder <amatcoder at gmail.com>
Date: Tue Jul 21 11:30:48 2015 +0200
Fix to save special options
---
src/command.c | 32 +++++++++++++++++---------------
1 file changed, 17 insertions(+), 15 deletions(-)
diff --git a/src/command.c b/src/command.c
index 0e3163e..07ae6d2 100644
--- a/src/command.c
+++ b/src/command.c
@@ -229,7 +229,23 @@ void child_watch(GPid pid, gint status, guidata *gui)
g_strfreev(gui->command);
#endif
- if (gui->m_error == FALSE) g_hash_table_remove_all(gui->clist);
+ if (gui->m_error == FALSE)
+ {
+ g_hash_table_remove_all(gui->clist);
+
+ /* Send 'video.fs' and 'cheats' every time */
+ gpointer name;
+ name = g_strdup(g_object_get_data(gtk_builder_get_object(
+ gui->builder, "-video.fs"), "cname"));
+
+ g_hash_table_insert(gui->clist, name, name);
+
+ name = g_strdup(g_object_get_data(gtk_builder_get_object(
+ gui->builder, "-cheats"), "cname"));
+
+ g_hash_table_insert(gui->clist, name, name);
+ }
+
gui->m_error = FALSE;
if (gui->state==1) gtk_window_present(GTK_WINDOW(gui->topwindow));
@@ -291,20 +307,6 @@ void row_exec(GtkTreeView *treeview, GtkTreePath *patho,
if ((gui->executing == TRUE) || (gui->fullpath == NULL))
return;
- /* Always to send 'video.fs' and 'cheats' */
-
- gpointer name;
- name = g_strdup(g_object_get_data(gtk_builder_get_object(
- gui->builder, "-video.fs"), "cname"));
-
- g_hash_table_insert(gui->clist, name, name);
-
- name = g_strdup(g_object_get_data(gtk_builder_get_object(
- gui->builder, "-cheats"), "cname"));
-
- g_hash_table_insert(gui->clist, name, name);
- /* */
-
gui->command = build_command(gui);
printf ("[Mednaffe] Executing mednafen...\n");
ret = g_spawn_async_with_pipes( NULL, gui->command, NULL,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mednaffe.git
More information about the Pkg-games-commits
mailing list