[mednaffe] 52/99: Allow future 0.9.4x versions of mednafen
Stephen Kitt
skitt at moszumanska.debian.org
Tue Aug 2 21:00:06 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 54a763e183de15740a25d001889fd5e5a82f97e7
Author: AmatCoder <amatcoder at gmail.com>
Date: Fri May 1 17:00:20 2015 +0200
Allow future 0.9.4x versions of mednafen
---
src/toggles.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/toggles.c b/src/toggles.c
index cf8aa35..f0adc29 100644
--- a/src/toggles.c
+++ b/src/toggles.c
@@ -352,9 +352,13 @@ gboolean check_version (gchar *stout, guidata *gui)
gchar *version = g_strconcat(aline[1], " detected...", NULL);
printf("[Mednaffe] %s\n",version);
- if ((aline[1][11]!='9') || (aline[1][13]!='3') || ((aline[1][14]-'0')<6))
+ if (aline[1][11]!='9')
return FALSE;
-
+ if (aline[1][13]-'0'<3)
+ return FALSE;
+ if ((aline[1][13]=='3') && ((aline[1][14]-'0')<6))
+ return FALSE;
+
GtkStatusbar *sbversion = GTK_STATUSBAR(gtk_builder_get_object(gui->builder, "sbversion"));
gtk_statusbar_push(GTK_STATUSBAR(sbversion), 1, version);
g_strfreev(achar);
--
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