[mednaffe] 25/99: Same as r37 for Linux
Stephen Kitt
skitt at moszumanska.debian.org
Tue Aug 2 21:00:01 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 b40ba9c7318f4738e68054705009184319144543
Author: amatcoder at gmail.com <amatcoder at gmail.com@44025b82-9115-564b-7d03-7f3fc60b4744>
Date: Thu Nov 28 14:58:17 2013 +0000
Same as r37 for Linux
---
src/command.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/command.c b/src/command.c
index 88168df..e29d666 100644
--- a/src/command.c
+++ b/src/command.c
@@ -96,9 +96,14 @@ void child_watch(GPid pid, gint status, guidata *gui)
#ifdef G_OS_WIN32
DWORD lpExitCode=0;
-
+ const gchar *err="Mednafen error.\nRead stdout.txt for details."
+
GetExitCodeProcess( pid, &lpExitCode);
if (lpExitCode!=0)
+ #else
+ const gchar *err="Mednafen error.";
+ if (status!=0)
+ #endif
{
GtkWidget *dialog;
@@ -106,13 +111,12 @@ void child_watch(GPid pid, gint status, guidata *gui)
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_ERROR,
GTK_BUTTONS_CLOSE,
- "Mednafen error.\nRead stdout.txt for details.");
+ err);
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
- printf ("[Mednaffe] Mednafen error. Read stdout.txt for details.");
+ printf ("[Mednaffe] %s", err);
}
- #endif
g_spawn_close_pid( pid );
gui->executing = FALSE;
--
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