gnome-nds-thumbnailer r15 - trunk
- From: hadess svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-nds-thumbnailer r15 - trunk
- Date: Wed, 1 Apr 2009 18:23:35 +0000 (UTC)
Author: hadess
Date: Wed Apr 1 18:23:35 2009
New Revision: 15
URL: http://svn.gnome.org/viewvc/gnome-nds-thumbnailer?rev=15&view=rev
Log:
2009-04-01 Bastien Nocera <hadess hadess net>
* gnome-nds-thumbnailer.c (main): Also support version 3
banners as used in some newer ROMs, spotted by TJ
Modified:
trunk/ChangeLog
trunk/gnome-nds-thumbnailer.c
Modified: trunk/gnome-nds-thumbnailer.c
==============================================================================
--- trunk/gnome-nds-thumbnailer.c (original)
+++ trunk/gnome-nds-thumbnailer.c Wed Apr 1 18:23:35 2009
@@ -192,8 +192,9 @@
g_input_stream_close (G_INPUT_STREAM (stream), NULL, NULL);
g_object_unref (stream);
- /* Check the version is version 1 */
- if (banner_data[0] != 0x1 || banner_data[1] != 0x0) {
+ /* Check the version is version 1 or 3 */
+ if ((banner_data[0] != 0x1 || banner_data[1] != 0x0) &&
+ (banner_data[0] != 0x3 || banner_data[1] != 0x0)) {
g_free (banner_data);
g_warning ("Unsupported icon version, probably not an NDS file");
return 1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]